Problem 172. Test if a Number is a Palindrome without using any String Operations
Solution Stats
Problem Comments
-
2 Comments
Freddy
on 22 Mar 2012
Nice expression for the usage test. Maybe one can add function "dec2base", cause the return type is a String.
Christian Schröder
on 15 Jul 2019
The problem description should mention that dec2base isn't allowed either.
Solution Comments
-
1 Comment
Paul Berglund
on 17 Sep 2013
This will fail to detect certain palindromes which contain zero e.g. 10101 however the test suite doesn't (yet) contain any such.
-
1 Comment
Nikolai
on 26 Feb 2012
There's something strange with the Cody test suites today...
Problem Recent Solvers204
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
4985 Solvers
-
Back to basics 22 - Rotate a matrix
861 Solvers
-
721 Solvers
-
Implement simple rotation cypher
1032 Solvers
-
Permute diagonal and antidiagonal
294 Solvers
More from this Author56
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!