Median across two sorted lists
Given two lists a and b, each sorted in non-decreasing order (values may repeat), return the median of all their values taken together: the middle value when the total count is odd, or the average of the two middle values when it is even. One of the lists may be empty, but not both.
Aim for O(log(min(m, n))): merging the two lists is O(m + n).
Examples
median_of_two([1,4,9], [2,6])→4median_of_two([1,3], [2,4])→2.5median_of_two([], [2,4,7])→4