Cody

# Problem 75. Find the palindrome

Solution 1531500

Submitted on 17 May 2018 by William Moraga
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)));

nowlen = 1 nowlen = 1 nowlen = 5 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 2 nowlen = 1

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

nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 5 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 2 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 2 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 4 nowlen = 1 nowlen = 2 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 2 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1

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)));

nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 25 nowlen = 1 nowlen = 23 nowlen = 1 nowlen = 21 nowlen = 1 nowlen = 19 nowlen = 1 nowlen = 17 nowlen = 1 nowlen = 15 nowlen = 1 nowlen = 13 nowlen = 1 nowlen = 11 nowlen = 1 nowlen = 3 nowlen = 9 nowlen = 1 nowlen = 7 nowlen = 1 nowlen = 5 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 3 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1 nowlen = 1