Cody

# Problem 2275. Palindrome numbers

Solution 1609073

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.

This solution is outdated. To rescore this solution, sign in.

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

Undefined function 'arr' for input arguments of type 'logical'. Error in palin (line 4) if arr(num2str(i)==fliplr(num2str(i))) Error in Test1 (line 3) assert(isequal(palin(n),y_correct))

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

Undefined function 'arr' for input arguments of type 'logical'. Error in palin (line 4) if arr(num2str(i)==fliplr(num2str(i))) Error in Test2 (line 3) assert(isequal(palin(n),y_correct))