{"id":"final-min-required","text":"The `result += min(prev, curr)` after the loop in `count_binary_substrings` is load-bearing — removing it undercounts by the contribution of the last two character groups.","truth_value":"IN","source":"entries/2026/06/06/count-binary-substrings-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"final-min-required","truth_value":"IN","reason":"premise"}]}}