Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [4,5,5,4];
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
y =
1
|
2 | Pass |
x =ones(4);
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
y =
1
|
3 | Pass |
x = [2,7,2; 6,9,6; 2,7,2];
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
y =
1
|
4 | Pass |
x = [1,2,3];
y_correct = false;
assert(isequal(isPalindrome(x),y_correct))
y =
0
|
5 | Pass |
x = [2,7,2; 6,9,6; 3,5,3];
y_correct = false;
assert(isequal(isPalindrome(x),y_correct))
y =
0
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35560 Solvers
1398 Solvers
725 Solvers
Relative ratio of "1" in binary number
392 Solvers
664 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!