
g0001_0100.s0009_palindrome_number.Solution.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-all Show documentation
Show all versions of leetcode-in-all Show documentation
104 LeetCode algorithm problem solutions
# #Easy #Math #Udemy_Integers #2024_06_03_Time_43_ms_(91.99%)_Space_16.5_MB_(58.90%)
class Solution:
def isPalindrome(self, x: int) -> bool:
return str(x) == str(x)[::-1]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy