LeetCode 169: Majority Element
Date: February 03, 2026Category: HashMap | ArraysTime Taken: 30 minutesDifficulty: Easy
Problem Statement
Given an array nums of size n, return the majority element.
The majority element is the element that appears more than ⌊n / 2⌋ times. You may a...
varchasvh.hashnode.dev2 min read