A single integer in your language's preferred format. This format is non-negotiable (no input as strings, arrays of digits, etc.), but standard I/O formats do apply if otherwise it would be impossible in your language.
A truthy or falsely value, depending on whether the given number is palindromic (same forwards and backwards)
- Numbers will always be positive, at least two digits long.
- This is fastest-algorithm, so lowest O(n) time complexity wins.
- 123454321 - true
- 296296 - false
- 296692 - true
- 5499456 - false
- 0 - false/error/any value