Cody

# Problem 45. Make a Palindrome Number

Solution 1983857

Submitted on 20 Oct 2019 by Harsh Patel
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))

t1 = 421 c = '545' cnt = logical 1 b = 545 d = 545 b = 545

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

t1 = 51 c = '201' cnt = logical 0 t = 102 d = 303 cnt = logical 1 b = 303

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

t1 = 192 c = '483' cnt = logical 0 t = 384 d = 867 cnt = logical 0 c = '867' t = 768 d = 1635 cnt = logical 0 c = '1635' t = 5361 d = 6996 cnt = logical 1 b = 6996

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

t1 = 871 c = '1049' cnt = logical 0 t = 9401 d = 10450 cnt = logical 0 c = '10450' t = 5401 d = 15851 cnt = logical 1 b = 15851

### Community Treasure Hunt

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

Start Hunting!