Problem 172. Test if a Number is a Palindrome without using any String Operations
32.49% Correct | 67.51% Incorrect
Last Solution submitted on Mar 21, 2023
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.
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.
Problem Recent Solvers210
Back to basics 13 - Input variables
Who knows the last digit of pi?
More from this Author56
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!