00 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity ...
分类:
其他好文 时间:
2017-09-11 22:42:06
阅读次数:
181
https://leetcode.com/problems/median-of-two-sorted-arrays/solution/ http://www.cnblogs.com/yuzhangcmu/p/4138184.html http://blog.csdn.net/gao144015605 ...
分类:
其他好文 时间:
2017-09-02 20:50:47
阅读次数:
259
这道题是LeetCode上的题目,难度级别为5,刚开始做没有找到好的思路,以为是自己智商比较低,后来发现确实也比较低。。。 题目: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the m ...
分类:
编程语言 时间:
2017-08-26 15:57:05
阅读次数:
114
题目大意:给定一个矩阵,给你多次查询,查询一个小矩阵中的数的中位数; 解题思路:完全没往二分上想,我们可以二分枚举中位数数值,搜索矩阵中数值小于中位数的个数。 ...
分类:
其他好文 时间:
2017-08-23 15:54:59
阅读次数:
181
香港中文大学研究成果 Rolling Guidance Filter http://www.cse.cuhk.edu.hk/~leojia/projects/rollguidance/ 100+ Times Faster Weighted Median Filter http://www.cse.c ...
分类:
其他好文 时间:
2017-08-23 11:53:55
阅读次数:
148
1. Label : 定义 HTTP请求名称。 2. Samples : 表示这次测试中一共发出了多少个请求。 3. Average : 平均响应时间,默认情况情况下就是单个 Request 的平均响应时间。 4. Median : 中位数,也就是50%用户的响应时间 5. 90%Line : 90 ...
分类:
其他好文 时间:
2017-08-15 21:09:05
阅读次数:
134
4. Median of Two Sorted ArraysThere are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The o... ...
分类:
编程语言 时间:
2017-08-13 20:02:46
阅读次数:
148
案例: 某些时候,我们想要为多个函数,添加某种功能,比如计时统计,记录日志,缓存运算结果等等 需求: 在每个函数中不需要添加完全相同的代码 如何解决? 把相同的代码抽调出来,定义成装饰器 求斐波那契数列(黄金分割数列),从数列的第3项开始,每一项都等于前两项之和 求一个共有10个台阶的楼梯,从下走到 ...
分类:
编程语言 时间:
2017-08-05 19:47:42
阅读次数:
175
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh ...
分类:
其他好文 时间:
2017-07-31 23:56:25
阅读次数:
173
最大最小堆 复杂度 时间 O(logN) insert, O(1) query, 空间 O(N) 思路 维护一个最大堆,一个最小堆。最大堆存的是到目前为止较小的那一半数,最小堆存的是到目前为止较大的那一半数,这样中位数只有可能是堆顶或者堆顶两个数的均值。而维护两个堆的技巧在于判断堆顶数和新来的数的大 ...
分类:
其他好文 时间:
2017-07-27 14:27:49
阅读次数:
162