You are given a string num consisting of digits.
A string is balanced if the sum of the digits located at even indices is equal to the sum of the digits located at odd indices.
Return true if num is balanced, or false otherwise.
Constraints:
num.length
num consists of digits only.
You are given a string num consisting of digits.
A string is balanced if the sum of the digits located at even indices is equal to the sum of the digits located at odd indices.
Return true if num is balanced, or false otherwise.
Constraints:
num.length
num consists of digits only.