Realm
stack
gno.land/r/g12cs4cehujpffpjpywmkqj43m6u5ya53nj69sjz/stack
Render
Stack & Queue Playground
A stack is LIFO (last in, first out) — the last item pushed is the first popped. A queue is FIFO (first in, first out) — the first item enqueued is the first dequeued.
Stack (LIFO) — size 0
Contents (bottom → top): (empty)
Top: (none) — Pop would panic.
Queue (FIFO) — size 0
Contents (front → back): (empty)
Front: (none) — Dequeue would panic.
Tip: push the same sequence into both, then Pop vs Dequeue to see LIFO reverse it while FIFO preserves order.
Source (qfile)
gnomod.toml stack.gno