Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 122131221;
y_correct = true;
assert( isequal(isNumPalindrome(x),y_correct) && isempty(regexp(evalc('type isNumPalindrome'),'(str|printf|eval|flip|dec2base)')) )
|
2 | Fail |
x = 1221;
y_correct = true;
assert( isequal(isNumPalindrome(x),y_correct) && isempty(regexp(evalc('type isNumPalindrome'),'(str|printf|eval|flip|dec2base)')) )
|
3 | Fail |
x = 12345;
y_correct = false;
assert( isequal(isNumPalindrome(x),y_correct) && isempty(regexp(evalc('type isNumPalindrome'),'(str|printf|eval|flip|dec2base)')) )
|
4 | Fail |
x = 9849;
y_correct = false;
assert( isequal(isNumPalindrome(x),y_correct) && isempty(regexp(evalc('type isNumPalindrome'),'(str|printf|eval|flip|dec2base)')) )
|
17485 Solvers
962 Solvers
Back to basics 20 - singleton dimensions
254 Solvers
260 Solvers
320 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!