low and high, return how many balanced numbers lie between low and high, inclusive.low=40, high=70 → 3
A two-digit number is balanced only when both digits match: 44, 55 and 66.
low=2310, high=2330 → 2
The first two digits add up to 5. That fits 2314 (1 + 4), 2323 (2 + 3) and 2330 (3 + 0).
low=100, high=999 → 0
Three-digit numbers have an odd number of digits, so none are balanced.
low ≤ high ≤ 10⁴low=40, high=70
3
Run checks the first 3 tests in your browser. Submit checks all 68 tests on the server, hidden ones included.