Back to Question
Merge k Sorted Lists
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
Click "Start Speaking" and answer the question naturally.