Maximum Depth of Binary Tree — Interactive Visualizer

DFS recursion computing 1 + max(left, right) depth. Watch depth values propagate back up the tree.