Cody

# Problem 489. Bang Bang in Bangalore

Solution 1900923

Submitted on 15 Aug 2019 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = 'Bang bang bang!'; y = 'Bang-bang bang-bang bang-bang!'; assert(isequal(y,Bangalore(x)))

y = '4 1 2' y = '4 1 2' y = '4 1 2' y = 'Bang-bang bang-bang bang-bang!' y = 'Bang-bang bang-bang bang-bang!'

2   Pass
x = 'Bang-bang bang-bang bang-bang!'; y = 'Bang bang bang!'; assert(isequal(y,Bangalore(x)))

y = '5 6 bang-bang!' y = '5 6 bang-bang!' y = '5 6 bang-bang!' y = 'Bang bang bang!' y = 'Bang bang bang!'

3   Pass
x = 'Bang-bang bang bang-bang bang bang bang-bang.'; y = 'Bang bang-bang bang bang-bang bang-bang bang.'; assert(isequal(y,Bangalore(x)))

y = '5 1 6 1 1 bang-bang.' y = '5 1 6 1 1 bang-bang.' y = '5 1 6 1 1 bang-bang.' y = 'Bang bang-bang bang bang-bang bang-bang bang.' y = 'Bang bang-bang bang bang-bang bang-bang bang.'

4   Pass
x = 'Nara3@# bangla bang purus%\$# bang-bang swamy&^%\$'; y = 'Nara3@# bangla bang-bang purus%\$# bang swamy&^%\$'; assert(isequal(y,Bangalore(x)))

y = 'Nara3@# bangla 1 purus%\$# 6 swamy&^%\$' y = 'Nara3@# bangla 1 purus%\$# 6 swamy&^%\$' y = 'Nara3@# bangla 1 purus%\$# 6 swamy&^%\$' y = 'Nara3@# bangla bang-bang purus%\$# bang swamy&^%\$' y = 'Nara3@# bangla bang-bang purus%\$# bang swamy&^%\$'

5   Pass
x = 'Bang bang-bang upadhy3@# bang-bang swarg%\$# bang-bang kumar&^%\$'; y = 'Bang-bang bang upadhy3@# bang swarg%\$# bang kumar&^%\$'; assert(isequal(y,Bangalore(x)))

y = '4 6 upadhy3@# 6 swarg%\$# 6 kumar&^%\$' y = '4 6 upadhy3@# 6 swarg%\$# 6 kumar&^%\$' y = '4 6 upadhy3@# 6 swarg%\$# 6 kumar&^%\$' y = 'Bang-bang bang upadhy3@# bang swarg%\$# bang kumar&^%\$' y = 'Bang-bang bang upadhy3@# bang swarg%\$# bang kumar&^%\$'

6   Pass
x = 'Bang-bang bangalore gyan&^%\$ uttam\$#@ bang.'; y = 'Bang bangalore gyan&^%\$ uttam\$#@ bang-bang.'; assert(isequal(y,Bangalore(x)))

y = '5 bangalore gyan&^%\$ uttam\$#@ 9' y = '5 bangalore gyan&^%\$ uttam\$#@ 9' y = '5 bangalore gyan&^%\$ uttam\$#@ 9' y = 'Bang bangalore gyan&^%\$ uttam\$#@ bang-bang.' y = 'Bang bangalore gyan&^%\$ uttam\$#@ bang-bang.'