c++
class Solution {\npublic:\n    vector separateDigits(vector& nums) {\n        vector ans;\n        for(int i = nums.size()-1;i>=0;i--){\n            while(nums[
class Solution {\npublic:\n    vector<int> separateDigits(vector<int>& nums) {\n        vector<int> ans;\n        for(int i = nums.size()-1;i>=0;i--){\n            while(nums[i]>0){\n                 ans.push_back(nums[i]%10);\n                nums[i] = nums[i]/10;   \n            }\n        }\n        reverse(ans.begin(),ans.end());\n        return ans;\n    }\n};
[]