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 pricingOne DFS per unvisited vertex; each launch discovers exactly one component.
What this asks
Count a graph's connected groups.
A DFS from every unvisited vertex discovers exactly one component per launch.
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