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

浙公网安备 33010602011771号