Skip to content

Glossary: Data Structures and Algorithms in Go

Dequeue, enqueue

Also written: dequeue, enqueue

Enqueue adds an item at the back of a queue, and dequeue takes the item at the front. Priya's tickets are enqueued as they arrive and dequeued in that same order.

Where the book teaches it

Related terms

QueueFIFO, LIFO