Simple JAVA Solution for beginners. 1ms. Beats 100%.
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\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    public int[] separateDigits(int[] nums) {\n        int size = 0;\n        int temp;\n        for(int i = 0; i < nums.length; i++) {\n            temp = nums[i];\n            while(temp > 0) {\n                size++;\n                temp /= 10;\n            }\n        }\n        int answer[] = new int[size];\n        for(int i = nums.length - 1; i >= 0; i--) {\n            while(nums[i] > 0) {\n                answer[--size] = nums[i] % 10;\n                nums[i] /= 10;\n            }\n        }\n        return answer;\n    }\n}\n```
['Array', 'Simulation', 'Java']