import math class Solution: def isPalindrome(self, x: int) -> bool: s = str(x) l = len(s) for i in range(l // 2): if s[i] != s[l - 1 - i]: return False return True # def isPalindrome(self, x: int) -> bool: # s = str(x) # l = len(s) # if l == 2: # return s[0] == s[1] # is_even = l % ..