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)).

 

题目分析:

题目中没有说清楚的一点是,假如中间的数值有两个的话,那么取两个数值的平均值。

posted @ 2015-02-10 11:06  程序员小王  阅读(102)  评论(0编辑  收藏  举报