Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [4,5,5,4];
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
y =
logical
1
|
2 | Pass |
x =ones(4);
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
y =
logical
1
|
3 | Pass |
x = [2,7,2; 6,9,6; 2,7,2];
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
y =
logical
1
|
4 | Pass |
x = [1,2,3];
y_correct = false;
assert(isequal(isPalindrome(x),y_correct))
y =
logical
0
|
5 | Pass |
x = [2,7,2; 6,9,6; 3,5,3];
y_correct = false;
assert(isequal(isPalindrome(x),y_correct))
y =
logical
0
|
900 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
364 Solvers
345 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!