摘要: http://www.lintcode.com/zh-cn/problem/sort-integers-ii/ 题目 给一组整数,按照升序排序。使用归并排序,快速排序,堆排序或者任何其他 O(n log n) 的排序算法。 样例 给出 [3, 2, 1, 4, 5], 排序后的结果为 [1, 2, 阅读全文
posted @ 2017-03-26 16:27 小丑进场 阅读(218) 评论(0) 推荐(0)
摘要: 题目 There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you hav 阅读全文
posted @ 2017-03-26 09:21 小丑进场 阅读(308) 评论(0) 推荐(0)