```
class Solution(object):
def plusOne(self, digits):
"""
:type digits: List[int]
:rtype: List[int]
"""
len_digits = len(digits)
jump = 1
for index in range(len_digits-1, -1, -1):
cur = digits[index] + jump
jump, cur = divmod(cur, 10)
digits[index] = cur
if jump:
digits.insert(0, jump)
return digits
```