题目
1 | class Solution { |
总结
- 很简单的循环判断,一开始也AC,但是代码很冗余,可读性差些,根据reference中的代码解进行修改。
References
https://leetcode-cn.com/problems/plus-one/solution/java-shu-xue-jie-ti-by-yhhzw/
Just a Blog
1 | class Solution { |
https://leetcode-cn.com/problems/plus-one/solution/java-shu-xue-jie-ti-by-yhhzw/