Leetcode 1287. Element Appearing More Than 25% In Sorted Array
Given a non-decreasing integer array that contains exactly one value occurring in more than 25% of elements, return that value. The sorted order lets you identify this frequent element efficiently by inspecting elements at strategic positions rather than scanning all counts.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Early April, 2026
Meta
Senior
Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time, return that integer
Hello Interview Premium
Your account is free and you can post anonymously if you choose.