single-pass-dual-max-tracking

Status: IN

`checkZeroOnes` computes both `max_ones` and `max_zeros` in a single O(n) pass with O(1) space, updating the relevant max on every character rather than only at run boundaries

Source: entries/2026/06/06/longer-contiguous-segments-of-ones-than-zeros-solution.md

JSON