O(N) Python3 solution easy peasy
IntuitionSimply sum the odd/even digitsApproach
Initialize two variables and a bool used as flag
Cycle chars in string


if flag is true add digit to first vari
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
Simply sum the odd/even digits

# Approach
<!-- Describe your approach to solving the problem. -->
- Initialize two variables and a bool used as flag
- Cycle chars in string
- - if flag is true add digit to first variable else add it in the second variable
- - Invert the flag
- Return true if first and second variable has the same value otherwise return false

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

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

# Code
```python3 []
class Solution:
    def isBalanced(self, num: str) -> bool:
        one = 0
        two = 0
        flag = True

        for it in num:
            if flag:
                one += ord(it) - ord('0')
            else:
                two += ord(it) - ord('0')
            flag = not flag

        return one == two
        
```
['Python3']