網址:https://leetcode.com/problems/palindrome-number/
題意:
判斷int數是否是回文.
解法:
先遍歷1遍,得到數值位數.
再前后判斷是否是回文
注意不能是負數.
代碼:
https://github.com/LiLane/leetcode/blob/master/c%2B%2B/009-PalindromeNumber⑵01504300015.cpp
https://github.com/LiLane/leetcode/blob/master/java/009-PalindromeNumber⑵01504300011.java