Problem 172. Test if a Number is a Palindrome without using any String Operations
Solution Stats
Problem Comments
-
2 Comments
Nice expression for the usage test. Maybe one can add function "dec2base", cause the return type is a String.
The problem description should mention that dec2base isn't allowed either.
Solution Comments
-
1 Comment
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
There's something strange with the Cody test suites today...
Problem Recent Solvers194
Suggested Problems
-
6501 Solvers
-
16295 Solvers
-
6922 Solvers
-
Test if two numbers have the same digits
205 Solvers
-
Rounding off numbers to n decimals
2304 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!