Bang Bang in Bangalore - MATLAB Cody - MATLAB Central

Problem 489. Bang Bang in Bangalore

Difficulty:Rate

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

32.35% Correct | 67.65% Incorrect
Last Solution submitted on Feb 26, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers162

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page