Cody

Solution 1949126

Submitted on 26 Sep 2019 by Doan Quang Manh
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' y = '421' a = 545 x = '545' y = '545' b = 545

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

x = '150' y = '051' a = 201 x = '201' y = '102' a = 303 x = '303' y = '303' b = 303

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

x = '291' y = '192' a = 483 x = '483' y = '384' a = 867 x = '867' y = '768' a = 1635 x = '1635' y = '5361' a = 6996 x = '6996' y = '6996' b = 6996

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

x = '178' y = '871' a = 1049 x = '1049' y = '9401' a = 10450 x = '10450' y = '05401' a = 15851 x = '15851' y = '15851' b = 15851

Suggested Problems

More from this Author95