Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

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.
  • 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&^%$'.
  • Thanks to this CODY facility, please correct the given string accordingly.


Problem Group

Solution Statistics

17 correct solutions 35 incorrect solutions
Last solution submitted on Aug 09, 2014