C++ || Easy ||Even & odd Vector || ✅
Simple Solution using Even & Odd Vector \n\n\nclass Solution {\npublic:\n    vector<int> sortArrayByParityII(vector<int>& a) {\n        vector<int>even;\n      
### Simple Solution using Even & Odd Vector \n\n```\nclass Solution {\npublic:\n    vector<int> sortArrayByParityII(vector<int>& a) {\n        vector<int>even;\n        vector<int>odd;\n        vector<int>ans;\n        for(int i=0;i<a.size();i++)\n        {\n            if(a[i]%2==0)\n                even.push_back(a[i]);\n            else\n                odd.push_back(a[i]);\n        }\n        int n=even.size();\n        for(int i=0;i<n;i++)\n        {\n            ans.push_back(even[i]);\n            ans.push_back(odd[i]);\n        }\n        return ans;\n    }\n};\n```
['C']