mengli / leetcode

leetcode
190 stars 121 forks source link

a 'Palindrome Number' issue. #7

Open klioen opened 8 years ago

klioen commented 8 years ago

https://github.com/mengli/leetcode/blob/master/PalindromeNumber.java#L26

Your output is error when the input is 1021 or 10021. we should change it to:

while(x != 0) {