Easy To Understand || C++ || O(n) TIme
\n\n\nint minDeletion(vector<int>& nums) {\n        int n=nums.size();\n        int cnt=0, si=0;\n        \n        for(int i=0;i<n-1;i++) {\n            if(num
\n\n```\nint minDeletion(vector<int>& nums) {\n        int n=nums.size();\n        int cnt=0, si=0;\n        \n        for(int i=0;i<n-1;i++) {\n            if(nums[i]==nums[i+1] && si%2==0) cnt++;\n            else si++;\n        }\n        if(si%2==0) cnt++;\n        \n        return cnt;\n    }\n```
['C']