one liner... check it out
Complexity

Time complexity:
O(n)


Space complexity:
O(n)

Code
# Complexity
- Time complexity:
O(n)

- Space complexity:
O(n)

# Code
```python3 []
class Solution:
    def isBalanced(self, num: str) -> bool:
        
        return sum(int(n) for n in num[::2]) == sum(int(n) for n in num[1::2])
```
['Python3']