min-of-adjacent-groups

Status: IN

In `count_binary_substrings`, the number of valid binary substrings spanning two adjacent groups of sizes a and b is exactly `min(a, b)` — this is the mathematical invariant the O(1)-space algorithm relies on.

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

JSON