110. Balanced Binary Tree — bottom-up height(), stepped
Every call returns a subtree height, or -1 meaning "unbalanced somewhere below."
Watch each frame's pending 1 + max(▢, ▢) fill in as its children return.
TreeCustom
Speed
depth 0 / max 0calls 0 / 0frames on stack 0
Source
Call stack newest on top
Recursion tree
activeon the current pathreturnedskipped by short-circuitnot called yet
The binary tree itself the recursion tree above is this, plus one leaf per null