标签:
网址:https://leetcode.com/problems/palindrome-number/
题意:
判断int数是不是回文.
解法:
先遍历一遍,得到数值位数.
再前后判断是不是回文
注意不能是负数.
代码:
https://github.com/LiLane/leetcode/blob/master/c%2B%2B/009-PalindromeNumber-201504300015.cpp
https://github.com/LiLane/leetcode/blob/master/java/009-PalindromeNumber-201504300011.java
[LeetCode]-009-Palindrome Number
标签:
原文地址:http://blog.csdn.net/lane_l/article/details/45392203