💯C++ || Easy to Understand || Bit-Manipulation💯
\n\n# Code\n\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        int cte=0, cto=0,i=0;\n        while(n!=0){\n            if(i%2==0 and (n&
\n\n# Code\n```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        int cte=0, cto=0,i=0;\n        while(n!=0){\n            if(i%2==0 and (n&1)==1)cte++;\n            if(i%2!=0 and (n&1)==1)cto++;\n            i++;\n            n=n>>1;\n        }\n        return {cte, cto};\n    }\n};\n```
['Bit Manipulation', 'C++']