Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 291 Bytes

File metadata and controls

16 lines (14 loc) · 291 Bytes

Lamarck      

0009 回文数


01 随便写写

class Solution(object):
    def isPalindrome(self, x):
        """
        :type x: int
        :rtype: bool
        """
        charNum = str(x)
        return charNum == charNum[::-1]