Queues are best implemented using a Linked List
When we Dequeue an element from Linked List the operation is O(1) while with Array its O(n)

Uses

Ride Haling App Priority
Printer Spool
Web Server Request Management
BFS

Time Complexity

OperationsTime Complexity
LookupO(n)
EnqueueO(1)
DequeueO(1)
PeekO(1)

Lookup operations are generally not performed as they are expensive

Programs

BFS (Breath First Search)
Add start node to queue mark as visited
If Queue not empty Dequeue and visit its neighbors
If not visited mark as true
Add unvisited neighbor to queue