Top K Frequent Elements at Yelp
Medium65.8% acceptance
This problem has 100.0% frequency at Yelp.
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 Yelp Questions
Two SumEasyLongest Substring Without Repeating CharactersMediumLongest Common PrefixEasyGroup AnagramsMediumMerge IntervalsMedium
View all Yelp questions