majority-threshold-floor-division

Status: IN

The majority threshold is `n // 2` (floor division), so the target must appear at least `n // 2 + 1` times; for n=5 that means ≥3 occurrences.

Source: entries/2026/06/06/check-if-a-number-is-majority-element-in-a-sorted-array-solution.md

JSON