力扣小白刷题之9题回文数

题目描述 判断一个整数是否是回文数。 思路 参考自:https://leetcode-cn.com/problems/palindrome-number/solution/dong-hua-hui-wen-shu-de-san-chong-jie-fa-fa-jie-ch/ 要求不能使用额外空间,也就不能将整数转换为字符串进行判断。 将整数分为左右两部分,右边那部分需要转置,然后判断这两部分是否相
相关文章
相关标签/搜索