题目:

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

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


思路:

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

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


        解决方案:

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

相关文章:

  • 2021-06-05
  • 2021-11-12
  • 2021-06-25
  • 2021-08-04
  • 2021-11-16
  • 2021-10-03
  • 2021-04-06
  • 2021-12-11
猜你喜欢
  • 2021-11-24
  • 2021-05-05
  • 2021-06-04
  • 2021-09-27
  • 2021-06-15
  • 2021-09-26
  • 2021-05-13
相关资源
相似解决方案