Easy Solution
\n\n# Complexity\n- Time complexity:O(N)\n Add your time complexity here, e.g. O(n) \n\n- Space complexity:O(N)\n Add your space complexity here, e.g. O(n) \n\n
\n\n# Complexity\n- Time complexity:O(N)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:O(N)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public int[] separateDigits(int[] nums) {\n        \n        StringBuilder s= new StringBuilder();\n        \n        for(int num:nums) s.append(num);\n        String t=s.toString();\n\n        int[] res= new int[t.length()];\n\n      \n        for(int i=0;i<s.length();i++){\n           res[i] =t.charAt(i)-\'0\';\n            \n        }\n\n        return res;\n    }\n}\n```
['Java']