Easy C++ Brute Force ✔✔
Complexity\n- Time complexity: O(n)\n Add your time complexity here, e.g. O(n) \n\n- Space complexity: O(1)\n Add your space complexity here, e.g. O(n) \n\n## C
## Complexity\n- Time complexity: $$O(n)$$\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: $$O(1)$$\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n## Code\n```\nclass Solution {\npublic:\n    vector<int> separateDigits(vector<int>& nums) {\n        vector<int> ans;\n        for (int i=0; i<nums.size(); i++){\n            if (nums[i]<10)ans.push_back(nums[i]);\n            else{\n                int val= nums[i];\n                string num;\n                while(val>0){\n                    num+= ((val%10)+\'0\');\n                    val/= 10;\n                }\n                for (int i= num.size()-1; i>=0; i--){\n                    ans.push_back(num[i]-\'0\');\n                }\n            }\n        }\n        return ans;\n    }\n};\n```
['Array', 'Math', 'String', 'C++']