SImple C++ two pointers solution
Simple two pointers solution\n```\nclass Solution {\npublic:\n    vector sortArrayByParityII(vector& A) {\n      int n = A.size();\n        for(int i = 0, j = 1
Simple two pointers solution\n```\nclass Solution {\npublic:\n    vector<int> sortArrayByParityII(vector<int>& A) {\n      int n = A.size();\n        for(int i = 0, j = 1; j < A.size() && i < A.size();){\n            if(A[i]%2==0 )\n                i+=2;\n            else if(A[j]%2==1)\n                j+=2;\n            else(swap(A[i],A[j]));\n            \n        }\n        return A;\n    }\n};
['C']