Simple C++ solution
Code\n\nclass Solution {\npublic:\n    vector<int> separateDigits(vector<int>& nums) {\n        vector<int> result;\n        string str;\n        for(int i=0;i<
# Code\n```\nclass Solution {\npublic:\n    vector<int> separateDigits(vector<int>& nums) {\n        vector<int> result;\n        string str;\n        for(int i=0;i<nums.size();i++){\n            str=to_string(nums[i]);\n            for(int i=0;i<str.length();i++){\n                result.push_back(int(str[i])-48);\n            }\n        }\n        return result;\n    }\n};\n```
['C++']