C++ Easy
```\nclass Solution {\npublic:\n    int minDeletion(vector& v){\n        \n        int ans = 0;\n        int x = 0;\n        for(int i=0; i<(int)v.size(); ++i)\
```\nclass Solution {\npublic:\n    int minDeletion(vector<int>& v){\n        \n        int ans = 0;\n        int x = 0;\n        for(int i=0; i<(int)v.size(); ++i)\n        {\n            if(i%2==x && i+1<v.size())\n            {\n                if(v[i]==v[i+1]){\n                    ans++;\n                    x ^= 1;\n                }\n            }\n        }\n        \n        if((v.size()-ans)%2==1)\n            ans++;\n        \n        return ans;        \n        \n    }\n};
['Greedy', 'C']