Skip to content

Commit af55816

Browse files
committed
Add 207 note.
1 parent 006eab3 commit af55816

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## 207. Course Schedule (Medium)
2+
3+
### **链接**
4+
题目:https://leetcode.com/problems/course-schedule/
5+
代码(github):https://github.com/illuz/leetcode
6+
7+
### **题意**
8+
9+
学习课程 A 要先学课程 B,给出一些课程学习顺序,问这些课程能不能学完。
10+
11+
### **分析**
12+
13+
经典的拓扑排序题,教科书般。
14+
这题问的是图中有没有环,或都说这个图是不是拓扑图。存下图后可以用 DFS 或队列/栈做。
15+

0 commit comments

Comments
 (0)