Java  And Python (Simple  Easy And Fast  Solution)
Please upvote if understood \n\nJava \n\n    public int[] separateDigits(int[] nums) {\n        int len =0 ;\n        for (int elem : nums){\n            len+= 
Please upvote if understood \n\n**Java **\n\n    public int[] separateDigits(int[] nums) {\n        int len =0 ;\n        for (int elem : nums){\n            len+= (int) Math.floor(Math.log10(elem))+1;\n        }\n        int [] ans = new int [len];\n        int idx =0 ;\n        \n        for(int elem : nums){\n            String str = Integer.toString(elem);\n            for(int i= 0 ;i<str.length();i++){\n                ans[idx++] = str.charAt(i)-\'0\';\n            }\n        }\n        return ans;\n    }\n\n**Python **\n\n    def separateDigits(self, nums: List[int]) -> List[int]:\n        count = 0 ;\n        ans = list();\n        for x in nums:\n            s = str(x);\n            for i in range(len(s)):\n                ans.append(int(s[i]));\n        return ans;
['Array']