分治算法
文章平均质量分 61
hling_so
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Count of Smaller Numbers After Self
逆序数对原创 2017-09-24 15:34:21 · 183 阅读 · 0 评论 -
241. Different Ways to Add Parentheses
241. Different Ways to Add Parentheses原创 2017-09-17 23:39:10 · 358 阅读 · 0 评论 -
215. Kth Largest Element in an Array
Find the kth largest element in an unsorted array.原创 2017-09-18 14:07:44 · 521 阅读 · 0 评论 -
240. Search a 2D Matrix II
240. Search a 2D Matrix IISearch a 2D Matrix II题目描述题意分治法算法描述具体实现复杂度题目描述Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the follow原创 2017-09-18 14:57:30 · 401 阅读 · 0 评论 -
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)).Example 1:nums1 = [1, 3]nums原创 2018-01-07 12:11:42 · 264 阅读 · 0 评论 -
23. Merge k Sorted Lists
题目Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.题意合并k个有序链表成1个有序链表分析将合并k个成1个链表 分解为: k个链表两两合并, 之后得到的k’链表再两两合并,直到最后只剩下一个链表实现class S原创 2018-01-07 13:44:19 · 317 阅读 · 0 评论
分享