分治算法
文章平均质量分 61
hling_so
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Count of Smaller Numbers After Self
逆序数对原创 2017-09-24 15:34:21 · 199 阅读 · 0 评论 -
241. Different Ways to Add Parentheses
241. Different Ways to Add Parentheses原创 2017-09-17 23:39:10 · 373 阅读 · 0 评论 -
215. Kth Largest Element in an Array
Find the kth largest element in an unsorted array.原创 2017-09-18 14:07:44 · 541 阅读 · 0 评论 -
240. Search a 2D Matrix II
240. Search a 2D Matrix II Search 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 · 435 阅读 · 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 · 285 阅读 · 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 · 335 阅读 · 0 评论
分享