✅C++ | ✅Intuitive Approach | ✅Easy to understand
Code\n\nclass Solution \n{\npublic:\n    vector<int> separateDigits(vector<int>& nums) \n    {\n        vector<int> ans, temp;\n        int n;\n        for(auto
# Code\n```\nclass Solution \n{\npublic:\n    vector<int> separateDigits(vector<int>& nums) \n    {\n        vector<int> ans, temp;\n        int n;\n        for(auto it:nums)\n        {\n            n = it;\n            while(n)\n            {\n                temp.push_back(n%10);\n                n/=10;\n            }\n            reverse(temp.begin(), temp.end());\n            for(auto it:temp)\n                ans.push_back(it);\n            temp.clear();\n        }\n        return ans;\n        \n    }\n};\n```
['Array', 'Math', 'C++']