🔥Python3 🔥29ms,Beats 95%
\nPlease UPVOTE if it helps \u2764\uFE0F\uD83D\uDE0A\nThank You and Happy To Help You!!\n\n# Code\n\nclass Solution:\n    def plusOne(self, digits: List[int]) -
![image.png](https://assets.leetcode.com/users/images/85217fc8-e205-4817-89aa-1d0fb37eae44_1675841089.4490588.png)\nPlease UPVOTE if it helps \u2764\uFE0F\uD83D\uDE0A\nThank You and Happy To Help You!!\n\n# Code\n```\nclass Solution:\n    def plusOne(self, digits: List[int]) -> List[int]:\n        digits=digits[::-1]\n        x=1\n        ans=[]\n        for i in range(len(digits)):\n            ans+=[(digits[i]+x)%10]\n            x=(digits[i]+x)//10\n        if x:\n            ans+=[x]\n        return ans[::-1]\n```
['Python3']