Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Latest commit

 

History

History

23

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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