Determine whether an integer is a palindrome. Do this without extra space.
class Solution(object):
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if x<0:
return False
x = str(abs(x))
for pos in range(len(x)/2):
if x[pos]!=x[len(x)-1-pos]:
return False
return True