LeetCode編程練習 - Palindrome Number學習心得

題目:     Determine whether an integer is a palindrome. Do this without extra space.     確定一個整數是否爲迴文,確保沒有額外空間。 思路:     在鏈表中出現過類似的題目,鏈表中是使用了快慢指針,而在Math中,以三位數爲例,只要判斷個位和百位相同即可。但顯示結果不符。                 解決方案
相關文章
相關標籤/搜索