Cody

Solution 555764

Submitted on 11 Jan 2015 by Lukas
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
%% a = 'xkayakyy'; p = 'kayak'; assert(isequal(p,pal(a)));

n = 6 n = 5 n = 4

2   Pass
%% a = '3.141592653589793238462643383279502884197169399375105820974944592307816406286'; p = '46264'; assert(isequal(p,pal(a)));

n = 75 n = 74 n = 73 n = 72 n = 71 n = 70 n = 69 n = 68 n = 67 n = 66 n = 65 n = 64 n = 63 n = 62 n = 61 n = 60 n = 59 n = 58 n = 57 n = 56 n = 55 n = 54 n = 53 n = 52 n = 51 n = 50 n = 49 n = 48 n = 47 n = 46 n = 45 n = 44 n = 43 n = 42 n = 41 n = 40 n = 39 n = 38 n = 37 n = 36 n = 35 n = 34 n = 33 n = 32 n = 31 n = 30 n = 29 n = 28 n = 27 n = 26 n = 25 n = 24 n = 23 n = 22 n = 21 n = 20 n = 19 n = 18 n = 17 n = 16 n = 15 n = 14 n = 13 n = 12 n = 11 n = 10 n = 9 n = 8 n = 7 n = 6 n = 5 n = 4

3   Pass
%% a = 'truly I say: able was I ere I saw elba, but that is another story'; p = 'able was I ere I saw elba'; assert(isequal(p,pal(a)));

n = 63 n = 62 n = 61 n = 60 n = 59 n = 58 n = 57 n = 56 n = 55 n = 54 n = 53 n = 52 n = 51 n = 50 n = 49 n = 48 n = 47 n = 46 n = 45 n = 44 n = 43 n = 42 n = 41 n = 40 n = 39 n = 38 n = 37 n = 36 n = 35 n = 34 n = 33 n = 32 n = 31 n = 30 n = 29 n = 28 n = 27 n = 26 n = 25 n = 24

Suggested Problems

More from this Author95