Cody

Problem 2275. Palindrome numbers

Solution 1990265

Submitted on 25 Oct 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
n = 100; y_correct = [11 22 33 44 55 66 77 88 99]; assert(isequal(palin(n),y_correct))

Assertion failed.

2   Fail
for n = 101:110 y_correct = [11 22 33 44 55 66 77 88 99 101]; assert(isequal(palin(n),y_correct)) end

y = 101 y = 101 101 y = 101 101 101 y = 101 101 101 101 y = 101 101 101 101 101 y = 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Column 31 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 32 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 33 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 34 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 35 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 36 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 37 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 38 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 39 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 40 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 41 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 42 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 43 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 44 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 45 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 46 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 47 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 48 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 49 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 50 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 51 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 Columns 31 through 52 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 y = Columns 1 through 30 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 ...

Assertion failed.

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

Assertion failed.

4   Fail
n = 300; 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]; assert(isequal(palin(n),y_correct))

Assertion failed.

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

Assertion failed.