9. Palindrome Number
https://leetcode.com/problems/palindrome-number/
Python
class Solution:
def isPalindrome(self, x: int) -> bool:
string_num = str(x)
return string_num == string_num[::-1]
https://leetcode.com/problems/palindrome-number/
class Solution:
def isPalindrome(self, x: int) -> bool:
string_num = str(x)
return string_num == string_num[::-1]