๐ Problem: Leet Code 169 โ Majority Element
QUESTION:
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 assume that the majority element always exists in the array.
Example 1:
Input: nums = [3,2,3]
Outp...
archana-code-diary.hashnode.dev2 min read