[LeetCode] Top Interview 150 Problems Solving # 169 Majority Element
Understanding the Problem
It is a simple task to return the number which appears the most in the list nums. If the input is nums = [2,2,1,1,1,2,2], the number that appears the most will be 2, thus return 2.
Approach
I would first acquire the unique n...
ramieeee.me1 min read