Sobes.tech
Junior — Senior

Find the median of the union of two sorted arrays

livecode

Task condition

There are two sorted arrays of numbers a and b with lengths lenA and lenB respectively. It is required to determine the median of the array obtained by merging all elements of these two arrays.