Using Single Array :)
\nclass Solution {\n    public int[] separateDigits(int[] nums) {\n        int n = 0, t;\n        for(int i: nums){\n            while(i!=0){\n                n
```\nclass Solution {\n    public int[] separateDigits(int[] nums) {\n        int n = 0, t;\n        for(int i: nums){\n            while(i!=0){\n                n++;\n                i/=10;\n            }\n        }\n        int ans[] = new int[n];\n        for(int i=nums.length-1; i>=0; i--){\n            t = nums[i];\n            while(t!=0){\n                ans[--n] = t%10;\n                t/=10;\n            }\n        }\n        return ans;\n    }\n}\n```
['Array', 'C++', 'Java']