Cody

# Problem 45. Make a Palindrome Number

Solution 847654

Submitted on 9 Mar 2016 by Aki Kangasmäki
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))

a1 = 124 a2 = 421 b = 545 b = 545 a1 = 545 a2 = 545

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

a1 = 150 a2 = 051 b = 201 b = 201 a1 = 201 a2 = 102 b = 303 a1 = 303 a2 = 303

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

a1 = 291 a2 = 192 b = 483 b = 483 a1 = 483 a2 = 384 b = 867 a1 = 867 a2 = 768 b = 1635 a1 = 1635 a2 = 5361 b = 6996 a1 = 6996 a2 = 6996

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

a1 = 178 a2 = 871 b = 1049 b = 1049 a1 = 1049 a2 = 9401 b = 10450 a1 = 10450 a2 = 05401 b = 15851 a1 = 15851 a2 = 15851

### Community Treasure Hunt

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

Start Hunting!