C++ || Bitset
Code\n\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        vector<int> res;\n        bitset<32> b(n);\n        string a=b.to_string();\n   
# Code\n```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        vector<int> res;\n        bitset<32> b(n);\n        string a=b.to_string();\n        int ev=0,od=0;\n        reverse(a.begin(),a.end());\n        for(int i=0;i<=31;i++){\n            if(a[i]==\'1\'){\n                od+=(i&1);\n                ev+=(!(i&1));\n            }\n        }\n        res.push_back(ev);\n        res.push_back(od);\n        return res;\n    }\n};\n```
['Bit Manipulation', 'C++']