9. 回文数

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

相关文章:

  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-10-13
  • 2021-11-01
猜你喜欢
  • 2021-05-17
  • 2022-01-13
  • 2021-10-18
  • 2021-04-17
  • 2021-07-28
  • 2021-12-19
相关资源
相似解决方案