prev-zero-sentinel

Status: IN

In `count_binary_substrings`, `prev` starts at 0 so the first group boundary contributes zero substrings via `min(0, curr)`, correctly handling the absence of a preceding group.

Source: entries/2026/06/06/count-binary-substrings-solution.md

Depended on by

JSON