Cody

# Problem 45. Make a Palindrome Number

Solution 1700477

Submitted on 30 Dec 2018 by Nikolaos Nikolaou
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
a = 124; b = 545; assert(isequal(find_palindrome(a),b))

out = 421 s1 = 1 2 4 a = 545 s1 = 5 4 5 out = 545 b = 545

2   Pass
a = 150; b = 303; assert(isequal(find_palindrome(a),b))

out = 51 s1 = 1 5 0 a = 201 s1 = 2 0 1 out = 102 a = 303 s1 = 3 0 3 out = 303 b = 303

3   Pass
a = 291; b = 6996; assert(isequal(find_palindrome(a),b))

out = 192 s1 = 2 9 1 a = 483 s1 = 4 8 3 out = 384 a = 867 s1 = 8 6 7 out = 768 a = 1635 s1 = 1 6 3 5 out = 5361 a = 6996 s1 = 6 9 9 6 out = 6996 b = 6996

4   Pass
a = 178; b = 15851; assert(isequal(find_palindrome(a),b))

out = 871 s1 = 1 7 8 a = 1049 s1 = 1 0 4 9 out = 9401 a = 10450 s1 = 1 0 4 5 0 out = 5401 a = 15851 s1 = 1 5 8 5 1 out = 15851 b = 15851

### Community Treasure Hunt

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

Start Hunting!