57 Min-heap push and pop Easy Heap Operations

Show how to add and remove elements from a min-heap, which always gives you the smallest element first.

O(n log n) time · O(n) space
58 Heapify an array Easy Heap Operations

Turn an unsorted list into a heap structure so the smallest element is always on top.

O(n) heapify · O(k log n) for k pops
59 Top K frequent elements Medium Heap + Map

Find the k numbers that appear most often in an array.

O(n log k) time · O(n) space
60 Kth smallest in sorted matrix Medium Heap + BFS

In a grid where rows and columns are sorted, find the kth smallest number without sorting everything.

O(k log n) time · O(n) space
61 Meeting rooms II Medium Heap + Sort

Figure out the maximum number of meetings happening at the same time, so you know how many rooms you need.

O(n log n) time · O(n) space
62 Merge K sorted arrays Medium K-way Merge

Combine k already-sorted lists into one single sorted list efficiently.

O(N log k) time · O(k) space
142 Kth Largest Element in an Array Medium Quick Select

Find the kth largest number in an unsorted array without fully sorting it.

O(n) average time · O(1) space (in-place)
143 Task Scheduler Medium Greedy + Heap

Schedule tasks so that identical tasks are at least n apart. Find the minimum total time including idle slots.

O(n * m) time · O(1) space (26 letters max)