Cody

Solution 1249958

Submitted on 11 Aug 2017 by Andrew Dobrovolc
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 = char([97:1:122]); y_correct = char([122:-1:97]); assert(isequal(rs(x),y_correct))

y = 'abcdefghijklmnopqrstuvwxya' y = 'abcdefghijklmnopqrstuvwxba' y = 'abcdefghijklmnopqrstuvwcba' y = 'abcdefghijklmnopqrstuvdcba' y = 'abcdefghijklmnopqrstuedcba' y = 'abcdefghijklmnopqrstfedcba' y = 'abcdefghijklmnopqrsgfedcba' y = 'abcdefghijklmnopqrhgfedcba' y = 'abcdefghijklmnopqihgfedcba' y = 'abcdefghijklmnopjihgfedcba' y = 'abcdefghijklmnokjihgfedcba' y = 'abcdefghijklmnlkjihgfedcba' y = 'abcdefghijklmmlkjihgfedcba' y = 'abcdefghijklnmlkjihgfedcba' y = 'abcdefghijkonmlkjihgfedcba' y = 'abcdefghijponmlkjihgfedcba' y = 'abcdefghiqponmlkjihgfedcba' y = 'abcdefghrqponmlkjihgfedcba' y = 'abcdefgsrqponmlkjihgfedcba' y = 'abcdeftsrqponmlkjihgfedcba' y = 'abcdeutsrqponmlkjihgfedcba' y = 'abcdvutsrqponmlkjihgfedcba' y = 'abcwvutsrqponmlkjihgfedcba' y = 'abxwvutsrqponmlkjihgfedcba' y = 'ayxwvutsrqponmlkjihgfedcba' y = 'zyxwvutsrqponmlkjihgfedcba'

2   Pass
x = 'HOW'; y_correct = 'WOH'; assert(isequal(rs(x),y_correct))

y = 'HOH' y = 'HOH' y = 'WOH'

Suggested Problems

More from this Author9