Hard
,Linked List
,Heap
,Divide and Conquer
You are given an array of k
linked-lists lists
, each linked-list is sorted in ascending order.
Merge all the linked-lists into one sorted linked-list and return it.
Example 1:
Example 2:
Example 3:
Constraints:
k
== lists.length
k
<= 104lists[i].length
<= 500lists[i][j]
<= 104lists[i]
is sorted in ascending order.lists[i].length
will not exceed 104.Yen-Chi ChenSun, Mar 12, 2023