#判断回文数 a=raw_input('your enter:\n')b=[]l=len(a)for i in range(0,l): m=a[l-i-1] b.append(m) for j in range(l): mark=True if a[j]!=b[j]: print 'no' mark=False breakif mark==True: print 'yes'
Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to string, note the restriction of using ext
Problem 4: Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. 寻找有两