You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unit 1: UMPIRE, Bit-O, Hash Tables, Stacks and Queues, Heaps
Week 1 Warmup 1: LeetCode 169. Majority Element
Given an array nums of size n, return the majority element.
The majority element is the element that appears more than the floor of n/2 (rounded down) times. You may assume that the majority element always exists in the the array.
About
Given an array nums of size n, return the majority element.