Straightforward Python Solution
Intuition\n Describe your first thoughts on how to solve this problem. \nWe initialize an empty string and fill it with the digits. Then we cast it to an intege
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\nWe initialize an empty string and fill it with the digits. Then we cast it to an integer and add one. we will then createa a new empty list and go through the characters of the typecasted number (so that its iterable) and append to the empty answer list. Finally, we return the list\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def plusOne(self, digits: List[int]) -> List[int]:\n        string = ""\n        for digit in digits:\n            string += str(digit)\n        number = int(string) + 1\n        ans = []\n        for digit in str(number):\n            ans.append(int(digit))\n        return ans\n```
['Python3']