
Patrick B. answered 07/13/19
Math and computer tutor/teacher
Since the arrays are sorted, do a merge sort to get one final sorted list.
The median is the middle number UNLESS there is an even number of such statistics.
In that case, the median is the average of the two middle ones.
In your example, you have [3,7,9], [4,8,15], [2,3,9]
merging the first two arrays [ 3,4,7,8,9,15]
final merge with [2,3,9]
2,3,3,4,7,8,9,9,15
the median is 7.