Cody

# Problem 2275. Palindrome numbers

Solution 1609075

Submitted on 14 Aug 2018
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
n = 200; y_correct = [11 22 33 44 55 66 77 88 99 101 111 121 131 141 151 161 171 181 191]; assert(isequal(palin(n),y_correct))

append = 1 y = 1 append = 2 y = 1 2 append = 3 y = 1 2 3 append = 4 y = 1 2 3 4 append = 5 y = 1 2 3 4 5 append = 6 y = 1 2 3 4 5 6 append = 7 y = 1 2 3 4 5 6 7 append = 8 y = 1 2 3 4 5 6 7 8 append = 9 y = 1 2 3 4 5 6 7 8 9 append = [] y = 1 2 3 4 5 6 7 8 9 append = 11 y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = 22 y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = 33 y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = 44 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = 55 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = 66 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = 77 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = 88 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 ...

Assertion failed.

2   Fail
n = 400; y_correct = [11 22 33 44 55 66 77 88 99 101 111 121 131 141 151 161 171 181 191 202 212 222 232 242 252 262 272 282 292 303 313 323 333 343 353 363 373 383 393]; assert(isequal(palin(n),y_correct))

append = 1 y = 1 append = 2 y = 1 2 append = 3 y = 1 2 3 append = 4 y = 1 2 3 4 append = 5 y = 1 2 3 4 5 append = 6 y = 1 2 3 4 5 6 append = 7 y = 1 2 3 4 5 6 7 append = 8 y = 1 2 3 4 5 6 7 8 append = 9 y = 1 2 3 4 5 6 7 8 9 append = [] y = 1 2 3 4 5 6 7 8 9 append = 11 y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = [] y = 1 2 3 4 5 6 7 8 9 11 append = 22 y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 append = 33 y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 append = 44 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 append = 55 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 append = 66 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 append = 77 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 append = 88 y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 append = [] y = 1 2 3 4 5 6 7 8 9 ...

Assertion failed.