Top K Frequent Elements at DoorDash
Medium65.8% acceptance
This problem has 25.0% frequency at DoorDash.
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 DoorDash Questions
Longest Increasing Path in a MatrixHardSearch Suggestions SystemMediumMaximum Profit in Job SchedulingHardMost Profit Assigning WorkMediumCheck if One String Swap Can Make Strings EqualEasy
View all DoorDash questions