码迷,mamicode.com
首页 > 移动开发 > 详细

HappyLeetcode47:Median of Two Sorted Arrays

时间:2015-02-10 13:02:20      阅读:120      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!