Cody

Problem 45. Make a Palindrome Number

Solution 3437433

Submitted on 27 Oct 2020 by Oliver Warlow
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))

b = 421 a = 545 b = 545

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

b = 51 a = 201 b = 102 a = 303 b = 303

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

b = 192 a = 483 b = 384 a = 867 b = 768 a = 1635 b = 5361 a = 6996 b = 6996

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

b = 871 a = 1049 b = 9401 a = 10450 b = 5401 a = 15851 b = 15851

Suggested Problems

More from this Author95

Community Treasure Hunt

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

Start Hunting!