Cody

Solution 1879185

Submitted on 19 Jul 2019 by Allen
  • Size: 7
  • This is the leading solution.
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)))

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Bangalore (line 3) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 3)]

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

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Bangalore (line 3) In ScoringEngineTestPoint2 (line 3) In solutionTest (line 5)]

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)))

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Bangalore (line 3) In ScoringEngineTestPoint3 (line 3) In solutionTest (line 7)]

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

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Bangalore (line 3) In ScoringEngineTestPoint4 (line 3) In solutionTest (line 9)]

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)))

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Bangalore (line 3) In ScoringEngineTestPoint5 (line 3) In solutionTest (line 11)]

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

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Bangalore (line 3) In ScoringEngineTestPoint6 (line 3) In solutionTest (line 13)]

Suggested Problems

More from this Author100