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 pricingSplice around the node in its three cases, reaching for the in-order successor when it has two children.
What this asks
Remove a key and repair the links.
Three cases: a leaf simply goes, a one-child node is replaced by its child, a two-child node is replaced by its in-order successor.
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