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 pricingPrerequisites are directed edges; a completion order exists exactly when there is no cycle.
What this asks
Decide whether all courses can be finished given prerequisite pairs.
Prerequisites form directed edges; the answer is yes exactly when no cycle exists.
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