LeetCode编程练习 - Palindrome Number学习心得

题目:     Determine whether an integer is a palindrome. Do this without extra space.     确定一个整数是否为回文,确保没有额外空间。 思路:     在链表中出现过类似的题目,链表中是使用了快慢指针,而在Math中,以三位数为例,只要判断个位和百位相同即可。但显示结果不符。                 解决方案
相关文章
相关标签/搜索