Cody

# Problem 45. Make a Palindrome Number

Solution 1896335

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

Error using reverse (line 42) First argument must be a string array, character vector, or cell array of character vectors. Error in find_palindrome (line 5) rev = str2num(reverse(a)); 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 reverse (line 42) First argument must be a string array, character vector, or cell array of character vectors. Error in find_palindrome (line 5) rev = str2num(reverse(a)); 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 reverse (line 42) First argument must be a string array, character vector, or cell array of character vectors. Error in find_palindrome (line 5) rev = str2num(reverse(a)); 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 reverse (line 42) First argument must be a string array, character vector, or cell array of character vectors. Error in find_palindrome (line 5) rev = str2num(reverse(a)); Error in Test4 (line 3) assert(isequal(find_palindrome(a),b))