Problem 489. Bang Bang in Bangalore
Imagine a strange language disorder, Bangolangosis, has developed among trigonometricians of Bangalore, India, when calculating angles of triangles wrong and banging head in frustration.
The most obvious symptom: the affected individuals say "bang" for "bang-bang" and vice versa.
Example
The following sample should help understanding their problem more clearly. A native utterance by an affected person:
'Bang Raja-bang#@om uttam%$# bang-bang swamy&^%$'
The corrected version should actually be:
'Bang-bang Raja-bang#@om uttam%$# bang swamy&^%$'.
Please correct the given string accordingly.
Solution Stats
Problem Comments
-
4 Comments
The creator of this problem might have indeed banged his head, which has affected his ability to think properly. I wish such stupid and meaningless problems stop showing up on Cody.
I admit that the time I'll spend on correcting the text of sufferers of Bangolangosis is small, but what I learned about regexprep from solving this problem will surely help me in other applications.
I disagree with Jafar's assessment: I thought this was a pretty funny problem.
Solution Comments
Show commentsProblem Recent Solvers162
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
50183 Solvers
-
Sort a list of complex numbers based on far they are from the origin.
5694 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
484 Solvers
-
Make a vector of prime numbers
800 Solvers
-
Sum of odd numbers in a matrix
588 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!