{"id":"overflow-safe-midpoint-convention","text":"Binary search solutions use `left + (right - left) // 2` instead of `(left + right) // 2` as a consistent idiom across the repo, borrowed from C/Java overflow safety even though Python has arbitrary-precision integers.","truth_value":"IN","source":"entries/2026/06/06/binary-search-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"overflow-safe-midpoint-convention","truth_value":"IN","reason":"premise"}]}}