9. Palindrome Number
https://leetcode.com/problems/palindrome-number/
Problem
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Example 1:
Example 2:
Example 3:
Follow up:
Coud you solve it without converting the integer to a string?
Solution
1. Using to_string
2. Space without converting to string
#math
#string
#important
Last updated
Was this helpful?