- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 Leetcode|【4】Median of Two Sorted Arrays
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 should be O(log (m+n)).这题不简单,通用的方法是写出一个找到两个数组第K大的函数。这
2015-09-08 19:25:09 366
原创 Leetcode|Sliding Window Maximum(multiset,优先队列,双端队列和区间树的应用)
Given an arraynums, there is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can only see theknumbers in the window. Each time the sliding window m...
2015-09-05 17:09:33 528
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人