Given two sorted arrrays a and b each of size n,m respictively, find the median of two sorted arrays.we use procedure of merge sort to combine 2 sorted array in 1 complexity. EXAMPLES: NORMAL APPROACH: IF a=[4,7,11,15,19,22] and m=6 IFb=[3,6,8,10,13,15,17,19,20,22] and n=7 combine a and b — — — c ascending order …