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 pricingConcept theory, tags and interview notes for DFS traversal of a graph.
What this asks
Traverse a graph depth-first.
Recursion or a stack dives to the end of each branch before turning back, marking vertices on reach.
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