01.05 · Problem
Top K Frequent Elements
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
Item 5 of 9 · updated 2026-10-12