{"id":"balanced-substring-always-even-result","text":"`longestBalancedSubstring` always returns an even integer (including 0) because `best` is updated as `2 * min(zeros, ones)`, and updates occur only when processing `'1'` characters.","truth_value":"IN","source":"entries/2026/06/06/find-the-longest-balanced-substring-of-a-binary-string-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"balanced-substring-always-even-result","truth_value":"IN","reason":"premise"}]}}