문제 leetcode.com/problems/majority-element Majority Element - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 풀기 전 숫자를 세는 문제이기때문에 HashMap이 가장 먼저 떠올랐다. O(n)시간이 걸릴것이다. 뭔가 옛 기억이 PriorityQueue를 사용하면 될거같은데 잘 모르겠다. 직접 푼 풀이 소요시간: 11분(09:40 ~ 09:51) class Solution { public int majorityEl..