Back to all patterns

Heap / Priority Queue

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Heap / Priority Queue pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.

Hard (1)

Merge K Sorted Lists

Merge k sorted linked lists into one sorted list.

Key Signals:

K-way mergeMin heap of headsExtract and add next