摘要:
(1)Plus One 解题思路:模拟现实中做加法的方式,在个位加一,并考虑进位的情况。代码如下: 1 public class Solution { 2 public int[] plusOne(int[] digits) { 3 int carries = 1; 4 for (int i = d 阅读全文
posted @ 2016-12-06 11:47
struggleforit
阅读(204)
评论(0)
推荐(0)