Cody

# Problem 45. Make a Palindrome Number

Solution 1983853

Submitted on 20 Oct 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))

t1 = 421 c = '545' cnt = logical 1 b = 545

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

t1 = 51 c = '201' cnt = logical 0 t = 102 d = 303 cnt = logical 1

Output argument "b" (and maybe others) not assigned during call to "find_palindrome". Error in Test2 (line 3) assert(isequal(find_palindrome(a),b))

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

t1 = 192 c = '483' cnt = logical 0 t = 384 d = 867 cnt = logical 0 c = '867' b = 867 t = 768 d = 1635 cnt = logical 0 c = '1635' b = 1635 t = 5361 d = 6996 cnt = logical 1

Assertion failed.

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

t1 = 871 c = '1049' cnt = logical 0 t = 9401 d = 10450 cnt = logical 0 c = '10450' b = 10450 t = 5401 d = 15851 cnt = logical 1

Assertion failed.