Cody

Solution 1905532

Submitted on 20 Aug 2019 at 3:01
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 * Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To perform elementwise multiplication, use '.*'. Error in find_palindrome (line 11) b = t * (10.*(length(t)-1:-1:0)); 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 * Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To perform elementwise multiplication, use '.*'. Error in find_palindrome (line 11) b = t * (10.*(length(t)-1:-1:0)); 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 * Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To perform elementwise multiplication, use '.*'. Error in find_palindrome (line 11) b = t * (10.*(length(t)-1:-1:0)); 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 * Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To perform elementwise multiplication, use '.*'. Error in find_palindrome (line 11) b = t * (10.*(length(t)-1:-1:0)); Error in Test4 (line 3) assert(isequal(find_palindrome(a),b))