首页 > 移动平台 > 详细

HappyLeetcode47:Median of Two Sorted Arrays

时间:2015-02-10 12:59:05      阅读:293      评论:0      收藏:0      [点我收藏+]

题目: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)).

 

题目分析:

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

HappyLeetcode47:Median of Two Sorted Arrays

原文:http://www.cnblogs.com/chengxuyuanxiaowang/p/4283305.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!