This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingProduce an actual order: Kahn's queue drains zero-indegree courses, or DFS records finishing times and reverses.
What this asks
Return an order that finishes every course.
Kahn's queue drains zero-indegree courses, or a DFS records finishing times and reverses them.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing