Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 430 Bytes

File metadata and controls

10 lines (5 loc) · 430 Bytes

CodePath - Intermediate Technical Interview Prep Course | Summer 2023

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.