Something went wrong. Try again.
My leetcode submissions.
Something went wrong. Try again.
159 B · 7 lines
Python
at main
12345678class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ return str(x) == str(x)[::-1]