Easy solution ✅✅
\n# Code\n\n#include <iostream>\n#include <vector>\n\nclass Solution {\npublic:\n    int minDeletion(vector<int>& nums) {\n        if(nums.size()==1 ){\n       
\n# Code\n```\n#include <iostream>\n#include <vector>\n\nclass Solution {\npublic:\n    int minDeletion(vector<int>& nums) {\n        if(nums.size()==1 ){\n          return 1;\n        }\n        int i=0;\n        int count =0;\n        \n        while(i<nums.size()-1){\n           if(nums[i]==nums[i+1]){\n              count++;\n               i++;\n           }\n           else{\n               i+=2;\n           }    \n        }\n        if(i == nums.size()-1){\n          count++;\n        }\n    return count;   \n    }\n};\n```
['C++']