balanced-substring-reset-on-zero-after-ones

Status: IN

Both `zeros` and `ones` counters reset to zero when a `'0'` follows a `'1'`, which prevents stale zero-counts from inflating results across non-contiguous balanced segments.

Source: entries/2026/06/06/find-the-longest-balanced-substring-of-a-binary-string-solution.md

JSON