C++ || EASY TO UNDERSTAND
Code\n\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        int x = 0, o = 0, e = 0;\n        while(n){\n            x++;\n            if(n&
# Code\n```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        int x = 0, o = 0, e = 0;\n        while(n){\n            x++;\n            if(n&1)e++;\n            n >>= 1;\n            if(n==0)break;\n            if(n&1)o++;\n            n >>= 1;\n            x++;\n        }\n            return {e,o};\n    }\n};\n```
['Math', 'Bit Manipulation', 'C++']