solulubeta
Sign in
NeetCode 150 / Arrays & Hashing
01.05 · Problem

Top K Frequent Elements

Medium Counting + bucket sort 1 video LC 347 Pro

This problem is part of solulu Pro

Given an integer array nums and an integer k, return the k values that occur most often. The answer is guaranteed to be unique; return it in any order.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 5 of 9 · updated 2026-10-12