Binary search tree: insert
Each value walks down, left if smaller, right if not, until it finds an empty spot.
Values50, 30, 70, 20, 40, 60, 80, 35
Insert 50, 30, 70, 20, 40, 60, 80, 35 into an empty binary search tree.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub