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 pricingFind the depth of a node: the number of edges from the root down to it.
What this asks
Find the depth of a node: the number of edges from the root down to it.
Walk down carrying a counter: each step deeper is one more edge, and the root starts at 0.
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