Fast solution
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```javascript []
/**
 * @param {string} num
 * @return {boolean}
 */
var isBalanced = function(num) {
    let obj = {'odd': 0, 'even': 0};

    for(let i = 0; i < num.length; i++) {
        if(i % 2 === 0) {
            obj['even'] += +num[i]
        }else {
            obj['odd'] += +num[i]
        }
    }

    return obj['odd'] == obj['even']
};
```
['JavaScript']