Cody

Solution 1925722

Submitted on 8 Sep 2019
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
a = 'xkayakyy'; p = 'kayak'; assert(isequal(p,pal(a)));

tt = 2 2 2 3 2 3 4

Assertion failed.

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

tt = Columns 1 through 29 2 2 2 2 2 2 2 3 2 2 2 3 2 2 2 2 2 3 4 2 3 2 2 2 2 2 3 2 2 Columns 30 through 58 2 2 2 3 2 3 2 2 2 2 3 2 3 4 5 2 2 3 2 3 2 2 2 3 2 3 2 2 2 Columns 59 through 60 2 3

Assertion failed.

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

tt = Columns 1 through 29 2 2 2 2 2 2 2 2 3 2 2 3 2 3 4 2 3 4 5 2 3 4 5 6 2 3 4 5 6 Columns 30 through 58 7 2 3 4 5 6 7 8 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 10 2 3 4 5 Columns 59 through 87 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 12 2 2 3 2 3 4 5 2 3 4 5 6 Columns 88 through 116 7 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 Columns 117 through 145 12 13 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 3 4 5 6 7 8 9 10 11 12 13 14 Columns 146 through 174 15 16 17 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 3 4 5 6 7 8 9 Columns 175 through 203 10 11 12 13 14 15 16 17 18 19 20 21 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Columns 204 through 232 19 20 21 22 23 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Columns 233 through 242 2 2 3 2 3 4 2 3 4 5

Assertion failed.