Back to Questions

Merge k Sorted Lists

50K viewsAsked at Amazon
Hard

Question Explain

You are given an array of $k$ linked-lists, each sorted in ascending order. Merge all the linked-lists into one sorted linked list. Use a Min-Heap (Priority Queue) for an efficient solution.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Merge k Sorted Lists - Interview Question