Step 1/0
Complexity
Best:O(1)
Average:O(1)
Worst:O(1)
Space:O(n)
Description
A First-In-First-Out (FIFO) data structure. Elements are added at the rear and removed from the front.
When to use
Task scheduling, BFS, print spoolers, messaging systems, and any scenario requiring ordered processing.