Very Simple and Easy to Understand Solution
\n# Code\n\nclass Solution {\npublic:\n    vector<int> separateDigits(vector<int>& nums) {\n        vector<int> ans;\n        for(auto n: nums){\n            ve
\n# Code\n```\nclass Solution {\npublic:\n    vector<int> separateDigits(vector<int>& nums) {\n        vector<int> ans;\n        for(auto n: nums){\n            vector<int> t;\n            while(n > 0){\n                t.push_back(n%10);\n                n = n/10;\n            }\n            for(int i = t.size()-1; i >= 0; --i) ans.push_back(t[i]);\n        }\n        return ans;\n    }\n};\n```\n\n---\n\n\n<b>Here is an article of my interview experience at Amazon, taht may be helpful for you : \nhttps://leetcode.com/discuss/interview-experience/3171859/Journey-to-a-FAANG-Company-Amazon-or-SDE2-(L5)-or-Bangalore-or-Oct-2022-Accepted\n\n---
['C++']