Interactive data structures · voxel edition

Train Yard × Cafeteria

A side-by-side gallery of stack and queue ordering.
ORDERING ≠ IMPLEMENTATION
How to read the gallery

One freight siding reveals LIFO: the most recently stacked item leaves first. One lunch line reveals FIFO: the first arrival is served first.

STACK / PUSH–POP
QUEUE / ENQUEUE–DEQUEUE
Live structure state
STACK ↓ C → B → A
QUEUE → Mara → Theo → Inez
Ready. Push, pop, enqueue, or serve an item.
DRAG TO ORBIT · SCROLL TO ZOOM · ARROW KEYS ROTATE · R RESETS VIEW
Building the gallery…