Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 122131221;
y_correct = true;
assert( isequal(isNumPalindrome(x),y_correct) && isempty(regexp(evalc('type isNumPalindrome'),'(str|printf|eval|flip|dec2base)')) )
ans =
[]
|
2 | Pass |
x = 1221;
y_correct = true;
assert( isequal(isNumPalindrome(x),y_correct) && isempty(regexp(evalc('type isNumPalindrome'),'(str|printf|eval|flip|dec2base)')) )
ans =
[]
|
3 | Pass |
x = 12345;
y_correct = false;
assert( isequal(isNumPalindrome(x),y_correct) && isempty(regexp(evalc('type isNumPalindrome'),'(str|printf|eval|flip|dec2base)')) )
ans =
[]
|
4 | Pass |
x = 9849;
y_correct = false;
assert( isequal(isNumPalindrome(x),y_correct) && isempty(regexp(evalc('type isNumPalindrome'),'(str|printf|eval|flip|dec2base)')) )
ans =
[]
|
The Goldbach Conjecture, Part 2
1284 Solvers
894 Solvers
253 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!