Coding Interview: Heap/Priority Queue Patterns — Top-K, Merge K Sorted, Median from Stream, Scheduling, Two Heaps
8 min read Heaps (priority queues) are the go-to data structure for problems involving the K-th largest/smallest element, merging sorted sequences, and scheduling […] Read article