HappyLeetcode47:Median of Two Sorted Arrays
题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
题目分析:
题目中没有说清楚的一点是,假如中间的数值有两个的话,那么取两个数值的平均值。