Stacks, Queues and Linked Lists
A stack, a queue and a linked list can share the same eight array elements. The data stays where it is written, and the pointers that move decide which item comes out next.
↺
What leaves the van first?
Canal Road parcel depot
Parcel and Index rows belowIndex rows beside the depot
walkFree walkyour edits
Restores your last edit
No items in the stack
Leaves everything in place
Delivery stops
After the run
- Unload
- No run yet.
- Unused
- No run yet.
Parcels reached: —
Door / Desk
No parcel taken in this operation.
Before
Eight fixed elements per array. Each structure follows the Design beside it; other systems may use different designs.