...

/

Merge K Sorted Lists

Merge K Sorted Lists

Try to solve the Merge K Sorted Lists problem.

Statement

Given an array of kk sorted linked lists, your task is to merge them into a single sorted linked list and return the head of this linked list.

Constraints:

  • k=k = lists.length
  • 0k1030 \leq k \leq 10^3
...

Access this course and 1200+ top-rated courses and projects.