LeetCode编程练习

来源:互联网 发布:淘宝网店开店流程 编辑:程序博客网 时间:2024/06/01 07:49

题目:

    Determine whether an integer is a palindrome. Do this without extra space.

    确定一个整数是否为回文,确保没有额外空间。


思路:

    在链表中出现过类似的题目,链表中是使用了快慢指针,而在Math中,以三位数为例,只要判断个位和百位相同即可。但显示结果不符。

       


        解决方案:

原创粉丝点击