Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

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.