力扣小白刷題之9題迴文數

題目描述 判斷一個整數是否是迴文數。 思路 參考自:https://leetcode-cn.com/problems/palindrome-number/solution/dong-hua-hui-wen-shu-de-san-chong-jie-fa-fa-jie-ch/ 要求不能使用額外空間,也就不能將整數轉換爲字符串進行判斷。 將整數分爲左右兩部分,右邊那部分需要轉置,然後判斷這兩部分是否相
相關文章
相關標籤/搜索