Merge K Sorted Lists
Prereq: Heap Fundamentals
Given k sorted lists of numbers, merge them into one sorted list.
Input: [[1, 3, 5], [2, 4, 6], [7, 10]]
Output: [1, 2, 3, 4, 5, 6, 7, 10]
You are on levelĀ Student
Prereq: Heap Fundamentals
Given k sorted lists of numbers, merge them into one sorted list.
Input: [[1, 3, 5], [2, 4, 6], [7, 10]]
Output: [1, 2, 3, 4, 5, 6, 7, 10]
Monster Assistant is thinking...