Cody

Solution 1875664

Submitted on 16 Jul 2019 by imrankhan ajees
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 = 1; y_correct = 1; assert(isequal(reverseVector(x),y_correct))

k = 1

2   Pass
x = -10:1; y_correct = 1:-1:-10; assert(isequal(reverseVector(x),y_correct))

k = 12 k = 11 k = 10 k = 9 k = 8 k = 7 k = 6 k = 5 k = 4 k = 3 k = 2 k = 1

3   Pass
x = 'able was i ere i saw elba'; y_correct = 'able was i ere i saw elba'; assert(isequal(reverseVector(x),y_correct))

k = 25 k = 24 k = 23 k = 22 k = 21 k = 20 k = 19 k = 18 k = 17 k = 16 k = 15 k = 14 k = 13 k = 12 k = 11 k = 10 k = 9 k = 8 k = 7 k = 6 k = 5 k = 4 k = 3 k = 2 k = 1