快速排序法
文章平均质量分 69
jmspan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 148. Sort List(链表排序)
原题网址:https://leetcode.com/problems/sort-list/ Sort a linked list in O(n log n) time using constant space complexity. 方法一:分区排序,以第一个元素为参照,分为大中小。 /** * Definition for singly-linked list. * publi原创 2016-05-26 01:18:10 · 901 阅读 · 0 评论 -
LeetCode 215. Kth Largest Element in an Array(第K大元素)
原题网址:https://leetcode.com/problems/kth-largest-element-in-an-array/ Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth dis原创 2016-05-06 03:34:55 · 519 阅读 · 0 评论 -
LeetCode 75. Sort Colors(颜色排序)
原题网址:https://leetcode.com/problems/sort-colors/ Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order re原创 2016-05-22 05:19:20 · 654 阅读 · 0 评论
分享