We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
给最后一位数加一,并计算进位,前面的数字都要加上进位。最后判断最前面的进位是否为0,0的话需要去掉。
O(N)