How can I find the median of two sorted arrays in O(log(m+n)) complexity
I copy the length of two initial arrays and then merge them into a third array and the length of the third array is equal to the length of initial two arrays added together. Then I try to find the median of the merged array.