Cody

Solution 1896337

Submitted on 9 Aug 2019
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))

str = '124' rev = 421 b = 545 x = '545' n = 1

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

str = '150' rev = 51 b = 201 x = '201' n = 1

Assertion failed.

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

str = '291' rev = 192 b = 483 x = '483' n = 1

Assertion failed.

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

str = '178' rev = 871 b = 1049 x = '1049' n = 1

Assertion failed.