isBalanced with a conversion solution from rune to int
Complexity
Time complexity: O(n)

Space complexity: O(1)
Code

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

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

# Code
```golang []
func isBalanced(num string) bool {
    var even int
    var odd int

    for i, v := range num {
        value := int(v - '0') 
        if i % 2 == 0 {
            even += value
            continue
        }
        odd += value
    }

    return even == odd
}
```
['Go']