Dynamic array (doubling)
When the array is full, allocate twice the room and copy across; on average each push stays cheap.
Operations7, 3, 9, 4, 8, pop, 1, 6, 2
Start with room for one item.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub