{"id":"majority-check-bounds-safe","text":"The short-circuit `and` in `is_majority_element` guarantees `nums[first + n // 2]` is never accessed out of bounds — the left operand `first + n // 2 < n` must be true before the right operand is evaluated.","truth_value":"IN","source":"entries/2026/06/06/check-if-a-number-is-majority-element-in-a-sorted-array-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"majority-check-bounds-safe","truth_value":"IN","reason":"premise"}]}}