max-consecutive-ones-single-pass

Status: IN

`findMaxConsecutiveOnes` runs in O(n) time and O(1) space with exactly one pass over the input using a streaming accumulator with reset-on-mismatch.

Source: entries/2026/06/06/max-consecutive-ones-solution.md

Depended on by

JSON