Python solution
\nclass Solution:\n    def plusOne(self, digits):\n        """\n        :type digits: List[int]\n        :rtype: List[int]\n        """\n        carry = 1\n    
```\nclass Solution:\n    def plusOne(self, digits):\n        """\n        :type digits: List[int]\n        :rtype: List[int]\n        """\n        carry = 1\n        for i in range(len(digits)-1, -1, -1):\n            carry, digits[i] = divmod(digits[i]+carry, 10)\n            if carry == 0:\n                return digits\n        return [1]+digits\n```
[]