C++ || Simple String use to convert to binary
\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        string s = "";\n        while(n){\n            if(n%2) s+=\'1\';\n            else s +
```\nclass Solution {\npublic:\n    vector<int> evenOddBit(int n) {\n        string s = "";\n        while(n){\n            if(n%2) s+=\'1\';\n            else s += \'0\';\n            n/=2;\n        }\n        // reverse(s.begin(),s.end());\n        // cout<<s<<"\\n";\n        int e=0,o=0;\n        for(int i=0;i<s.size();i++){\n            if(i%2==1 && s[i]==\'1\') o+=1;\n            if(i%2==0 && s[i]==\'1\') e+=1;\n        }\n        return {e,o};\n    }\n};\n```
['C', 'C++']