Merge two sorted lists
Repeatedly take the smaller of the two heads; attach whatever is left at the end.
Two lists1, 4, 7, 10 | 2, 3, 8, 12
Merge two sorted lists by always taking the smaller head.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub