Skip to content

Glossary: Data Structures and Algorithms in Go

FIFO, LIFO

Also written: FIFO, LIFO, first in, first out, last in, first out

First in, first out is how a queue serves items, like a line at the counter. Last in, first out is how a stack works, like a pile of cups.

Where the book teaches it

Related terms

QueueStack