Top K Frequent Elements at Meta
Medium65.8% acceptance
This problem has 87.5% frequency at Meta.
Problem Description
Given an integer array `nums` and an integer `k`, return _the_ `k` _most frequent elements_. You may return the answer in **any order**.
Read full problem and hintsTopics
Also asked at 50 companies
More Meta Questions
Kth Largest Element in an ArrayMediumTwo SumEasyMerge IntervalsMediumMerge Sorted ArrayEasyFind Peak ElementMedium
View all Meta questions