
拓扑排序
文章平均质量分 85
小榕流光
这个作者很懒,什么都没留下…
展开
-
[leetcode] 210. Course Schedule II 解题报告
题目链接:https://leetcode.com/problems/course-schedule-ii/ 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 cour原创 2016-02-26 14:22:04 · 1442 阅读 · 0 评论 -
[leetcode] 310. Minimum Height Trees 解题报告
题目链接:https://leetcode.com/problems/minimum-height-trees/ For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all po原创 2016-05-15 01:41:26 · 787 阅读 · 0 评论 -
[leetcode] 207. Course Schedule 解题报告
题目链接:https://leetcode.com/problems/course-schedule/ 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原创 2016-02-26 14:10:16 · 1865 阅读 · 0 评论 -
[leetcode] 269. Alien Dictionary 解题报告
题目链接: https://leetcode.com/problems/alien-dictionary/ There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of words原创 2016-03-25 15:58:39 · 6979 阅读 · 1 评论