Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 441 Bytes

0023-merge-k-sorted-lists.adoc

File metadata and controls

26 lines (19 loc) · 441 Bytes

23. Merge k Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.

Example:

Input:
[
  1->4->5,
  1->3->4,
  2->6
]
Output: 1->1->2->3->4->4->5->6
link:{sourcedir}/_0023_MergeKSortedLists.java[role=include]