摘要:
题目地址:https://leetcode-cn.com/problems/palindrome-number/ 解题思路: 栈操作。 class Solution { public: int getLength(int x) { int len = 0; if (x == 0) return 1; 阅读全文
摘要:
题目地址:https://leetcode-cn.com/problems/string-to-integer-atoi/ 解题思路:注意所有情况。官方提供了类似状态机的一种算法——自动机(https://leetcode-cn.com/problems/string-to-integer-atoi 阅读全文