You are given a list of lists, and each inner list is already sorted in increasing order. Return one list with all the numbers, sorted in increasing order.
Example 1
Input:
merge_sorted_lists([[1, 4, 7], [2, 5], [3, 6, 9]])
Output:
[1, 2, 3, 4, 5, 6, 7, 9]
Example 2
Input:
merge_sorted_lists([[], [1], []])
Output:
[1]
0 <= len(lists) <= 1005 * 10**5.No results yet
Run your code to check it against the examples, or submit to run every test.