Java || 3 Solution ❤️❤️  || 100% || 0(N) ||  Easy || ❤️❤️
Intuition\n Describe your first thoughts on how to solve this problem. \nUPVOTE ME (PLEASE)\uD83D\uDE4B\uD83D\uDE4B\uD83D\uDE4B\u200D\u2642\uFE0F\uD83D\uDC81\uD
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\nUPVOTE ME (PLEASE)\uD83D\uDE4B\uD83D\uDE4B\uD83D\uDE4B\u200D\u2642\uFE0F\uD83D\uDC81\uD83D\uDE47\u200D\u2642\uFE0F\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:0(N)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:0(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public int[] separateDigits(int[] nums) {\n        List<Integer> temp = new ArrayList<>();\n        for(int i=0; i<nums.length; i++){\n            String s = nums[i]+"";\n            for(int j=0; j<s.length(); j++) temp.add(s.charAt(j)-\'0\');\n        }\n        int res[] = new int[temp.size()];\n        for(int i=0; i<temp.size(); i++) res[i] = temp.get(i);\n        return res;\n\n    //        Another solution\n\n        // List<Integer> ans = new ArrayList<>();\n        // for(int i : nums){\n        //     List<Integer> temp = new ArrayList<>();\n        //     while(i>0){\n        //         temp.add(i%10);\n        //         i/=10;\n        //     }\n        //     for(int j=temp.size()-1; j>=0; j--) ans.add(temp.get(j));\n        // }\n        // int res[] = new int[ans.size()];\n        // for(int i=0; i<ans.size(); i++) res[i] = ans.get(i);\n        // return res;\n\n\n    //     Another solution (Using String) --> try this one   --->0(N);\n\n        // String str = "";\n        // for(int i : nums) str+=i;\n        // int ans[] = new int[str.length()];\n        // for(int i=0; i<str.length(); i++){\n        //     char ch = str.charAt(i);\n        //     int val = ch - \'0\';\n        //     ans[i] = val;\n        // }\n        // return ans;\n    }\n}\n```
['Java']