Top 50
Topic roadmap
Updated weekly · Last refresh Sep 12

Top 50 top k Interview Questions

The most frequently asked top k questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~10htotal time
63companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
CodingStart here. 42 questions · ~493 min
Top K Frequent ElementsEasy
Practice
Recently asked

Find the k most frequent elements in an array using counting and a heap or bucket strategy.

Hash Tablestop kHeapAllegis GroupDelta Electronics AmericasAccenture
Kth Largest Without SortingMedium
Practice
Recently asked

Use in-place Quickselect to find the kth largest array element without sorting the full input.

Arraystop kHeapTencentNew Relic
Top-K Frequent With PriorityQueueEasy
Practice
Recently asked

Return the top-k frequent event codes using a frequency map and bounded min-heap.

priority queuetop kQualys
Top-K Elements with HeapMedium
Practice
Recently asked

Return the k largest array elements using a min-heap with O(n log k) time and O(k) space.

ArraysData StructuresAlgorithmsHHackerRank
Top K Frequent Items Data StructureHard
Practice
Recently asked

Maintain changing item frequencies and return the top K items using a hash map and lazy min-heap.

Data Structurestop kHeapGoldman Sachs Asset & Wealth Management
Top K Closest Obstacles StreamMedium
Practice

Use a heap-based priority queue to keep the k closest obstacle readings from a sensor stream.

priority queuesensor datatop kWaymo
Top K Nearest DistancesMedium
Practice

Use a size-k heap to return the indices of the k smallest distances with deterministic tie-breaking.

Arraystop kHeapInfosys
More Coding questions with a free account
2
SQL & Data Manipulation4 questions + 2 drills · ~67 min
3
System Design3 questions · ~35 min
More System Design questions with a free account
4
More topics1 question · ~12 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions plus 2 hands-on drills to finish this plan.