#!/usr/bin/env python3
# -*- coding: utf-8 -*-



#不使用额外的空间

class Solution(object):
	def isPalindrome(self, x):
		if x < 0:
			return False
		else:
			return x == int(str(x)[::-1])
			
x=Solution()
print(x.isPalindrome(1233211))
37ad4556644421ad49dad85d6861793808b4f5df
class Solution(object):
    <mask token>


<mask token>

class Solution(object):

    def isPalindrome(self, x):
        if x < 0:
            return False
        else:
            return x == int(str(x)[::-1])


<mask token>

class Solution(object):

    def isPalindrome(self, x):
        if x < 0:
            return False
        else:
            return x == int(str(x)[::-1])


<mask token>
print(x.isPalindrome(1233211))

class Solution(object):

    def isPalindrome(self, x):
        if x < 0:
            return False
        else:
            return x == int(str(x)[::-1])


x = Solution()
print(x.isPalindrome(1233211))

#!/usr/bin/env python3
# -*- coding: utf-8 -*-



#不使用额外的空间

class Solution(object):
	def isPalindrome(self, x):
		if x < 0:
			return False
		else:
			return x == int(str(x)[::-1])
			
x=Solution()
print(x.isPalindrome(1233211))