Cody

Solution 1925712

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

a = 121 120 107 97 121 97 107 121 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = 121 121 120 107 97 121 97 107 b = 'yy' b = 1×0 empty char array b = 1×0 empty char array a = 107 121 121 120 107 97 121 97 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = 97 107 121 121 120 107 97 121 b = 'ka' b = 1×0 empty char array b = 1×0 empty char array a = 121 97 107 121 121 120 107 97 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = 97 121 97 107 121 121 120 107 b = 'ya' b = 'aya' b = 1×0 empty char array a = 107 97 121 97 107 121 121 120 b = 'ak' b = 'yak' b = 'ayak' a = 120 107 97 121 97 107 121 121 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array

Assertion failed.

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

a = Columns 1 through 30 54 51 46 49 52 49 53 57 50 54 53 51 53 56 57 55 57 51 50 51 56 52 54 50 54 52 51 51 56 51 Columns 31 through 60 50 55 57 53 48 50 56 56 52 49 57 55 49 54 57 51 57 57 51 55 53 49 48 53 56 50 48 57 55 52 Columns 61 through 77 57 52 52 53 57 50 51 48 55 56 49 54 52 48 54 50 56 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 56 54 51 46 49 52 49 53 57 50 54 53 51 53 56 57 55 57 51 50 51 56 52 54 50 54 52 51 51 56 Columns 31 through 60 51 50 55 57 53 48 50 56 56 52 49 57 55 49 54 57 51 57 57 51 55 53 49 48 53 56 50 48 57 55 Columns 61 through 77 52 57 52 52 53 57 50 51 48 55 56 49 54 52 48 54 50 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 50 56 54 51 46 49 52 49 53 57 50 54 53 51 53 56 57 55 57 51 50 51 56 52 54 50 54 52 51 51 Columns 31 through 60 56 51 50 55 57 53 48 50 56 56 52 49 57 55 49 54 57 51 57 57 51 55 53 49 48 53 56 50 48 57 Columns 61 through 77 55 52 57 52 52 53 57 50 51 48 55 56 49 54 52 48 54 b = '82' b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 54 50 56 54 51 46 49 52 49 53 57 50 54 53 51 53 56 57 55 57 51 50 51 56 52 54 50 54 52 51 Columns 31 through 60 51 56 51 50 55 57 53 48 50 56 56 52 49 57 55 49 54 57 51 57 57 51 55 53 49 48 53 56 50 48 Columns 61 through 77 57 55 52 57 52 52 53 57 50 51 48 55 56 49 54 52 48 b = '26' b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 48 54 50 56 54 51 46 49 52 49 53 57 50 54 53 51 53 56 57 55 57 51 50 51 56 52 54 50 54 52 Columns 31 through 60 51 51 56 51 50 55 57 53 48 50 56 56 52 49 57 55 49 54 57 51 57 57 51 55 53 49 48 53 56 50 Columns 61 through 77 48 57 55 52 57 52 52 53 57 50 51 48 55 56 49 54 52 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 52 48 54 50 56 54 51 46 49 52 49 53 57 50 54 53 51 53 56 57 55 57 51 50 51 56 52 54 50 54 Columns 31 through 60 52 51 51 56 51 50 55 57 53 48 50 56 56 52 49 57 55 49 54 57 51 57 57 51 55 53 49 48 53 56 Columns 61 through 77 50 48 57 55 52 57 52 52 53 57 50 51 48 55 56 49 54 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty cha...

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

a = Columns 1 through 30 121 116 114 117 108 121 32 73 32 115 97 121 58 32 97 98 108 101 32 119 97 115 32 73 32 101 114 101 32 73 Columns 31 through 60 32 115 97 119 32 101 108 98 97 44 32 98 117 116 32 116 104 97 116 32 105 115 32 97 110 111 116 104 101 114 Columns 61 through 65 32 115 116 111 114 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 114 121 116 114 117 108 121 32 73 32 115 97 121 58 32 97 98 108 101 32 119 97 115 32 73 32 101 114 101 32 Columns 31 through 60 73 32 115 97 119 32 101 108 98 97 44 32 98 117 116 32 116 104 97 116 32 105 115 32 97 110 111 116 104 101 Columns 61 through 65 114 32 115 116 111 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 111 114 121 116 114 117 108 121 32 73 32 115 97 121 58 32 97 98 108 101 32 119 97 115 32 73 32 101 114 101 Columns 31 through 60 32 73 32 115 97 119 32 101 108 98 97 44 32 98 117 116 32 116 104 97 116 32 105 115 32 97 110 111 116 104 Columns 61 through 65 101 114 32 115 116 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 116 111 114 121 116 114 117 108 121 32 73 32 115 97 121 58 32 97 98 108 101 32 119 97 115 32 73 32 101 114 Columns 31 through 60 101 32 73 32 115 97 119 32 101 108 98 97 44 32 98 117 116 32 116 104 97 116 32 105 115 32 97 110 111 116 Columns 61 through 65 104 101 114 32 115 b = 'ot' b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 115 116 111 114 121 116 114 117 108 121 32 73 32 115 97 121 58 32 97 98 108 101 32 119 97 115 32 73 32 101 Columns 31 through 60 114 101 32 73 32 115 97 119 32 101 108 98 97 44 32 98 117 116 32 116 104 97 116 32 105 115 32 97 110 111 Columns 61 through 65 116 104 101 114 32 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 32 115 116 111 114 121 116 114 117 108 121 32 73 32 115 97 121 58 32 97 98 108 101 32 119 97 115 32 73 32 Columns 31 through 60 101 114 101 32 73 32 115 97 119 32 101 108 98 97 44 32 98 117 116 32 116 104 97 116 32 105 115 32 97 110 Columns 61 through 65 111 116 104 101 114 b = 's ' b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array a = Columns 1 through 30 114 32 115 116 111 114 121 116 114 117 108 121 32 73 32 115 97 121 58 32 97 98 108 101 32 119 97 115 32 73 Columns 31 through 60 32 101 114 101 32 73 32 115 97 119 32 101 108 98 97 44 32 98 117 116 32 116 104 97 116 32 105 115 32 97 Columns 61 through 65 110 111 116 104 101 b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = 1×0 empty char array b = ...

Assertion failed.