JAVA EASY to UNDERSTAND Solution
\n# Approach\nJUST SIMPLE ADDITION.\n\nTIP : use LinkedList instead of ArrayList.\n\n# Complexity\n- Time complexity : O(n)\n\n- Space complexity: O(1)\n\n# Cod
\n# Approach\nJUST SIMPLE ADDITION.\n\nTIP : use LinkedList instead of ArrayList.\n\n# Complexity\n- Time complexity : O(n)\n\n- Space complexity: O(1)\n\n# Code\n```\nclass Solution {\n    public List<Integer> addToArrayForm(int[] num, int k) {\n        int n=num.length;\n        List<Integer> l=new LinkedList<>();\n        for(int i=0;i<n||k!=0;i++){\n            if(i<n) k+=num[n-i-1];\n            l.add(0,k%10);\n            k=k/10;\n        }\n        return l;\n    }\n}\n```
['Linked List', 'Math', 'Java']