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 ₹1,999 ₹999 · Launch offer
Item 5 of 150 · updated 2026-10-12