Most Frequent Values
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
Given a list of integers and a number k, return the k values that appear most often. Explain how to do it faster than sorting all the counts, and the cost of each approach.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.