Cody

# Problem 45. Make a Palindrome Number

Solution 1991397

Submitted on 26 Oct 2019 by Asif Newaz
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))

x = '124' x = '421' x = 421 d = '545' e = '545' f = 545

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

x = '150' x = '051' x = 51 d = '201' e = '102' f = 102 d = '303' e = '303' f = 303

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

x = '291' x = '192' x = 192 d = '483' e = '384' f = 384 d = '867' e = '768' f = 768 d = '1635' e = '5361' f = 5361 d = '6996' e = '6996' f = 6996

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

x = '178' x = '871' x = 871 d = '1049' e = '9401' f = 9401 d = '10450' e = '05401' f = 5401 d = '15851' e = '15851' f = 15851

### Community Treasure Hunt

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

Start Hunting!