Cody

# Problem 2275. Palindrome numbers

Solution 3171266

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

y = 11 22 33 44 55 66 77 88 99

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

y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101 y = 11 22 33 44 55 66 77 88 99 101

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

y = 11 22 33 44 55 66 77 88 99 101 111 121 131 141 151 161 171 181 191

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

y = 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

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

y = Columns 1 through 29 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 Columns 30 through 39 303 313 323 333 343 353 363 373 383 393

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!