C++ Easy
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        string bin;\n        while(n){\n            bin+=to_string(n%2);\n            n/=2;\n        }\n        vector<int> res(2);\n        for(int i = 0; i < bin.size(); i++){\n            if(bin[i] == \'1\'){\n                if(!(i&1)) res[0]++;\n                else res[1]++;\n            }\n        }\n        return res;\n    }\n};\n```
['String', 'Bit Manipulation', 'C++']