simple and easy C++ solution
if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n###### Let\'s Connect on Linkedin: www.linkedin.com/in/shishirrsiam\n\n\n\n# Code\ncpp []\nclass Solution {\
# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n###### Let\'s Connect on Linkedin: www.linkedin.com/in/shishirrsiam\n\n\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    bool isBalanced(string num) \n    {\n        map<int, int>mp;\n        bool flag = true;\n        for(auto ch:num)\n        {\n            mp[flag] += ch - \'0\';\n            flag = !flag;\n        }\n        return mp[0] == mp[1];\n    }\n};\n```
['String', 'C++']