logo
Interview
    Interview Guide
    Coding Problems List
Sponsored: Coursera
Problems

Merge k Sorted Lists

Problem

Merge k sorted linked lists and return it as one sorted list.

Analyze and describe its complexity.

Example

Given lists:

[
  2->4->null,
  null,
  -1->null
],

return -1->2->4->null.

Online Judge