1 ms, Beats 99%
Intuition\nCount the sums of even and odd digints in the string.\n\n# Approach\nIterate over the string.\nExtract a character and convert it into integer value 
# Intuition\nCount the sums of even and odd digints in the string.\n\n# Approach\nIterate over the string.\nExtract a character and convert it into integer value simply subtracting \'0\' character from it. Increment odd/even counter respectively.\nDon\'t forget to check if an iteration variable \'i\' is in scope.\n\n\n# Complexity\n- Time complexity:\nO(N)\n\n- Space complexity:\nO(1)\n\n# Code\n```java []\nclass Solution {\n    public boolean isBalanced(String num) {\n        int odd = 0, even = 0;\n        for (int i = 0; i < num.length(); i++) {\n            odd += (num.charAt(i++) - \'0\');\n            if (i < num.length()) {\n                even += (num.charAt(i) - \'0\');\n            }\n        }\n        return odd == even;\n    }\n}\n```
['Java']