Cody

# Problem 45. Make a Palindrome Number

Solution 1943180

Submitted on 19 Sep 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   Fail
a = 124; b = 545; assert(isequal(find_palindrome(a),b))

Error using base2dec (line 22) Not enough input arguments. Error in find_palindrome (line 7) a = a + base2dec(reverse(ba)); Error in Test1 (line 3) assert(isequal(find_palindrome(a),b))

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

Error using base2dec (line 22) Not enough input arguments. Error in find_palindrome (line 7) a = a + base2dec(reverse(ba)); Error in Test2 (line 3) assert(isequal(find_palindrome(a),b))

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

Error using base2dec (line 22) Not enough input arguments. Error in find_palindrome (line 7) a = a + base2dec(reverse(ba)); Error in Test3 (line 3) assert(isequal(find_palindrome(a),b))

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

Error using base2dec (line 22) Not enough input arguments. Error in find_palindrome (line 7) a = a + base2dec(reverse(ba)); Error in Test4 (line 3) assert(isequal(find_palindrome(a),b))