Cody

# Problem 2500. Text Processing - New

Solution 1329263

Submitted on 6 Nov 2017
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   Fail
x = 'Sheldon, Penny, Leonard and Raj are great and great and great and great receptively. Wolowitz is just a great jerk'; y_correct = 'Sheldon, Penny, Leonard and Raj are great and awesome and great and awesome receptively. Wolowitz is just a great jerk'; assert(isequal(stringGreat(x),y_correct))

y = 'Sheldon, Penny, Leonard and Raj are great and great and great and great receptively. Wolowitz is just a great jerk'

Assertion failed.

2   Fail
x = 'great great great. great great. great' y_correct = 'great awesome great. great awesome. great' assert(isequal(stringGreat(x),y_correct))

x = 'great great great. great great. great' y_correct = 'great awesome great. great awesome. great' y = 'great great great. great great. great'

Assertion failed.

3   Pass
x = 'Greatness is great gift. Great news' y_correct = x; assert(isequal(stringGreat(x),y_correct))

x = 'Greatness is great gift. Great news' y = 'Greatness is great gift. Great news'

4   Fail
x = 'Being great implies that you must think like other great people and that is basically done to make sure that the proverb great minds think alike is correct and that is great. Probably that is not a great example I came up with'; y_correct = 'Being great implies that you must think like other awesome people and that is basically done to make sure that the proverb great minds think alike is correct and that is awesome. Probably that is not a great example I came up with'; assert(isequal(stringGreat(x),y_correct))

y = 'Being great implies that you must think like other great people and that is basically done to make sure that the proverb great minds think alike is correct and that is great. Probably that is not a great example I came up with'

Assertion failed.

### Community Treasure Hunt

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

Start Hunting!