recursion visualizer · leetcode 104
maxDepth(root) — maximum depth of a binary tree
primary: structure traversal
secondary: value-combining
1 call per node + 1 per empty slot
Input changing this re-runs the trace from step 0
What just happened
READY
Press Forward to make the first call.
The tree itself the data being walked
visited
Recursion tree one node per call · grows in call order
active
on current path
closed (returned)
skipped
not called yet