update 9
This commit is contained in:
parent
4985021976
commit
27af23f4d6
@ -3,6 +3,8 @@
|
||||
|
||||
class Solution:
|
||||
def isPalindrome(self, x: int) -> bool:
|
||||
if x < 0:
|
||||
return False
|
||||
str_x = str(x)
|
||||
inv_str_x = str_x[::-1]
|
||||
int_inv_str_x = int(inv_str_x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user