Merge k Sorted Lists

Solution Code

Time Complexity

O(N log k)

Space Complexity

O(1)