Skip to main content

One doc tagged with "queue"

View all tags

Queue

A queue is a fundamental linear data structure in computer science that follows the First-In-First-Out (FIFO) principle. Just like a real-world queue (e.g., people lining up at a ticket counter), the first element added to the queue will be the first one to be removed.