leetcode騰訊精選009

題目:https://leetcode-cn.com/problems/palindrome-number/ 代碼: class Solution { public: bool isPalindrome(int x) { bool res = true; if (x < 0) { return false; } int dig = log10(x); int ind
相關文章
相關標籤/搜索