One `for` loop beats 93%
Code\n\nclass Solution:\n    def plusOne(self, digits: List[int]) -> List[int]:\n\n        for i in range(len(digits)-1,-1,-1):\n            if digits[i]==9:\n 
# Code\n```\nclass Solution:\n    def plusOne(self, digits: List[int]) -> List[int]:\n\n        for i in range(len(digits)-1,-1,-1):\n            if digits[i]==9:\n                digits[i]=0\n            else:\n                digits[i]+=1\n                return digits\n        return [1]+digits\n```
['Array', 'Math', 'Python3']