Algomination
Data Structures
AboutContact

Algomination

Learn algorithms and data structures through smooth, interactive visualizations.

SortingSearchingArray AlgorithmsData StructuresAboutContact

© 2026Algomination. Created by Omang Rawat & Rahul Soni.

Omang Rawat
Rahul Soni
All data structures

Queue

Ops O(1)Space O(n)

A FIFO structure — enqueue adds to the rear, dequeue removes from the front, peek inspects it. All O(1).

front →← rear
3
7
5
3 / 8 elements
Enqueue, dequeue, or peek (FIFO — first in, first out).
FrontRearPeek

About Queue

A FIFO structure — enqueue adds to the rear, dequeue removes from the front, peek inspects it. All O(1).

Time complexity: O(1). Space complexity: O(n).

Use the interactive visualizer above to run Queue on your own input and watch every comparison, swap, and operation animate step by step — pause, scrub, or replay at any speed.