Cody

# Problem 45. Make a Palindrome Number

Solution 1796927

Submitted on 25 Apr 2019 by Devineni Aslesha
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))

revnum = 400 revnum = 420 revnum = 421 revnum = 500 revnum = 540 revnum = 545 b = 545

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

revnum = 0 revnum = 50 revnum = 51 revnum = 100 revnum = 100 revnum = 102 revnum = 300 revnum = 300 revnum = 303 b = 303

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

revnum = 100 revnum = 190 revnum = 192 revnum = 300 revnum = 380 revnum = 384 revnum = 700 revnum = 760 revnum = 768 revnum = 5000 revnum = 5300 revnum = 5360 revnum = 5361 revnum = 6000 revnum = 6900 revnum = 6990 revnum = 6996 b = 6996

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

revnum = 800 revnum = 870 revnum = 871 revnum = 9000 revnum = 9400 revnum = 9400 revnum = 9401 revnum = 0 revnum = 5000 revnum = 5400 revnum = 5400 revnum = 5401 revnum = 10000 revnum = 15000 revnum = 15800 revnum = 15850 revnum = 15851 b = 15851