Cody

# Problem 45. Make a Palindrome Number

Solution 1903916

Submitted on 18 Aug 2019 by Tetsuji Tsuda
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))

t = 124 flag = logical 1 fl = '124' fl = '421' fl = 421 sum = 545 sum = '545' flag = logical 0 t = 545 b = 545

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

t = 150 flag = logical 1 fl = '150' fl = '051' fl = 51 sum = 201 sum = '201' t = 201 fl = '201' fl = '102' fl = 102 sum = 303 sum = '303' flag = logical 0 t = 303 b = 303

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

t = 291 flag = logical 1 fl = '291' fl = '192' fl = 192 sum = 483 sum = '483' t = 483 fl = '483' fl = '384' fl = 384 sum = 867 sum = '867' t = 867 fl = '867' fl = '768' fl = 768 sum = 1635 sum = '1635' t = 1635 fl = '1635' fl = '5361' fl = 5361 sum = 6996 sum = '6996' flag = logical 0 t = 6996 b = 6996

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

t = 178 flag = logical 1 fl = '178' fl = '871' fl = 871 sum = 1049 sum = '1049' t = 1049 fl = '1049' fl = '9401' fl = 9401 sum = 10450 sum = '10450' t = 10450 fl = '10450' fl = '05401' fl = 5401 sum = 15851 sum = '15851' flag = logical 0 t = 15851 b = 15851