C++ Solution Using Number Remainder concept
\nclass Solution {\npublic:\n    \nvector<int> separateDigits(vector<int>& nums) {\n    vector<int> ans;  \n\n    for(int i=0; i<nums.size(); ++i) {\n\n        
```\nclass Solution {\npublic:\n    \nvector<int> separateDigits(vector<int>& nums) {\n    vector<int> ans;  \n\n    for(int i=0; i<nums.size(); ++i) {\n\n        vector<int> temp; \n        while(nums[i]>0){\n            temp.push_back(nums[i]%10);\n            nums[i]/=10;\n        }\n        reverse(temp.begin(),temp.end());\n        for(int j=0;j<temp.size();j++){\n            ans.push_back(temp[j]);\n        }\n    }\n\n    return ans;\n\n\n}\n};\n```\n
[]