We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1a7740 + bd0d031 commit 39222f0Copy full SHA for 39222f0
solution/009.Palindrome Number/Solution.py
@@ -0,0 +1,10 @@
1
+class Solution:
2
+ def isPalindrome(self, num):
3
+ """
4
+ :type num: int
5
+ :rtype: bool
6
7
+ if num < 0:
8
+ return False
9
+
10
+ return str(num) == str(num)[::-1]
0 commit comments