1 line Python Solution || Beats 98.4% in memory
\n\n# Approach\n Describe your approach to solving the problem. \n1. turn each element on nums into a string \n\nmap(str,num)\n\n2. concate the elements of the 
\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n1. turn each element on nums into a string \n```\nmap(str,num)\n```\n2. concate the elements of the array together\n```\n\'\'.join(map(str,num))\n```\n3. type cast into int and add k\n```\nint(\'\'.join(map(str,num))) + k\n```\n4. type cast into string\n```\nstr(int(\'\'.join(map(str,num)))+k)\n```\n5. create a list after type casting each char of the string into int\n```\nlist(map(int,str(int(\'\'.join(map(str,num)))+k)))\n```\n\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n$$O(n)$$ ; where n = len(num)\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\ndon\'t know how to actually compute it, let me know in the comments.\n\n# Code\n```\nclass Solution:\n    def addToArrayForm(self, num: List[int], k: int) -> List[int]:\n        return list(map(int,str(int(\'\'.join(map(str,num)))+k)))\n        \n```
['Python3']