Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 169. Majority Element
Given an array of n integers, return the element that appears more than ⌊n/2⌋ times (the majority element is guaranteed to exist). The goal is to identify this element efficiently, ideally in O(n) time and O(1) space (versus using counting or hashing).
Asked at:
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid May, 2025
Microsoft
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.