Pre-order traversal
The node first, then its subtrees: the order you would copy a tree in.
Values50, 30, 70, 20, 40, 60, 80
The tree built from 50, 30, 70, 20, 40, 60, 80. Visit every node pre-order.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub