Cody

Problem 43101. String revert

Solution 1000669

Submitted on 7 Oct 2016
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 = 'this is a sentence'; y_correct = 'sentence a is this'; assert(isequal(strRevert(x),y_correct))

Undefined function 'strRevert' for input arguments of type 'char'. Error in Test1 (line 3) assert(isequal(strRevert(x),y_correct))

2   Fail
x = 'lala tralala'; y_correct = 'tralala lala'; assert(isequal(strRevert(x),y_correct))

Undefined function 'strRevert' for input arguments of type 'char'. Error in Test2 (line 3) assert(isequal(strRevert(x),y_correct))

Suggested Problems

More from this Author25

Community Treasure Hunt

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

Start Hunting!