max-consecutive-ones-non1-as-terminator

Status: IN

The function does not validate that elements are 0 or 1; any non-1 value (including 2, -1, etc.) silently acts as a streak terminator.

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

JSON