Given two sorted arrays A and B of sizes n, m respectively. Find the median of these two arrays in O(1) space i.e. find the median without actually merging the two arrays.
Input Format
First line contains two integers - n, m
Next two lines contain n and m integers respectively.
Output Format
Single integer denoting the median of the given arrays.
Given two sorted arrays A and B of sizes n, m respectively. Find the median of these two arrays in O(1) space i.e. find the median without actually merging the two arrays.
Input Format First line contains two integers - n, m Next two lines contain n and m integers respectively.
Output Format Single integer denoting the median of the given arrays.
Add code in the Interview Questions repo.