Day-3 Leetcode Interview Questions
169. Majority Element — LeetCode (Easy)
Problem Summary
You are given an integer array nums of size n.
Your task is to return the majority element, which is defined as:
The element that appears more than ⌊ n / 2 ⌋ times
It is guaranteed that a majo...
compscigrad.hashnode.dev4 min read