169. Majority Element
文章目录
**Description**Hints**Submissions**Solutions
Total Accepted: 192332 Total Submissions: 417285 Difficulty: Easy Contributor: LeetCode
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority element always exist in the array. **Credits:**Special thanks to @ts for adding this problem and creating all test cases.
Hide Company Tags Adobe Zenefits Hide Tags Array Divide and Conquer Bit Manipulation Hide Similar Problems (M) Majority Element II
|
|
文章作者 Hustbill
上次更新 2017-06-12