Search
⌘K

Leetcode 1150. Check If a Number Is Majority Element in a Sorted Array

Given a sorted array and a target value, determine whether the target appears strictly more than half the array's length (is a majority element). Leverage the sorted order (e.g., binary search to find occurrence boundaries) to compute the count efficiently.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.