Merge K-sorted List

As the lists are already sorted, we can use the Priority Queue to track the first point of each list and merge them iteratively.

References


Related Notes