quarter-gap-proves-frequency-in-sorted-array

Status: IN

In a sorted array, `arr[i] == arr[i + len(arr)//4]` proves that element appears at least `len(arr)//4 + 1` times, because all values between those indices must be identical.

Source: entries/2026/06/06/element-appearing-more-than-25-in-sorted-array-solution.md

JSON