[C++] || Simple and unique approach || Faster Solution (0ms)✅
\n\n# Code\n\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        vector<int> v(2);\n        int i=0;\n        while(n){\n            if(n&1
\n\n# Code\n```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        vector<int> v(2);\n        int i=0;\n        while(n){\n            if(n&1){\n                if(i%2)\n                    v[1]++;\n                else\n                    v[0]++;\n            }  \n            i++;\n            n=n>>1;\n        }\n\n        return v;\n    }\n};\n```
['Bit Manipulation', 'C++']