Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 274 Bytes

File metadata and controls

22 lines (14 loc) · 274 Bytes

Problem 23: Merge K Sorted Lists

Difficulty: Easy

Problem

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