Cody

Solution 1626268

Submitted on 12 Sep 2018 by Seok Lee
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))

a_c = '124' a_c_rev = '421' k = '545' b = 545

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

a_c = '150' a_c_rev = '051' k = '201' k_rev = '102' k = '303' b = 303

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

a_c = '291' a_c_rev = '192' k = '483' k_rev = '384' k = '867' k_rev = '768' k = '1635' k_rev = '5361' k = '6996' b = 6996

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

a_c = '178' a_c_rev = '871' k = '1049' k_rev = '9401' k = '10450' k_rev = '05401' k = '15851' b = 15851