Back to QuestionsPractice with This Question
Merge k Sorted Lists
50K views•Asked 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.