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 pricingCount the nodes in the subtree rooted at a given node.
What this asks
Count the nodes in the subtree rooted at a given node.
A subtree is a tree in its own right: run the node-count walk starting from that node only.
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