{"id":"balanced-substring-reset-on-zero-after-ones","text":"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.","truth_value":"IN","source":"entries/2026/06/06/find-the-longest-balanced-substring-of-a-binary-string-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"balanced-substring-reset-on-zero-after-ones","truth_value":"IN","reason":"premise"}]}}