Skip to content

LC 0009 [E] Palindrome Number

Code with Senpai edited this page Mar 17, 2022 · 1 revision
class Solution:
    def isPalindrome(self, x: int) -> bool:
        return str(x) == str(x)[::-1]
Clone this wiki locally