Binary search tree: delete
Three cases: a leaf goes, a single child moves up, two children borrow the successor's value.
Values50, 30, 70, 20, 40, 60, 80, 65delete 70
Delete 70 from the tree built from 50, 30, 70, 20, 40, 60, 80, 65.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub