[leetcode] Merge k Sorted Lists
Merge k Sorted Lists Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Tag: divide and conquer, linked list, heap update 9/22/2015 Merge sort the k lists. O(knlogk) in time, O(1) //merge these /** * Definition for singly-linked list. * struct ListNode […]