Two storage shards each return their latency samples ALREADY SORTED ascending.
Compute the median of the combined data WITHOUT concatenating and re-sorting
— aim for O(log(min(n, m))) using binary partition (an O(n + m) two-pointer
merge passes the tests but misses the point).
The combined dataset is guaranteed non-empty. For an even total, the median is
the average of the two middle values.
Input Format:
Line 1: n m
Line 2: n sorted integers (empty line when n = 0)
Line 3: m sorted integers (empty line when m = 0)
Output Format:
The median, formatted to 1 decimal place.