02
Reasoning
·
Dependency Ordering
Topological Sort (Kahn's)
⏱
O(V+E)
◧
O(V)
5
7
3
11
8
2
9
10
Queue (front → back)
5
7
3
Step
1
/ 23
Speed
0.5×
1×
2×
4×
Speed
0.5×
1×
2×
4×