Advertisements
Advertisements
Question
Explain the following term:
QUEUE
Explain
Advertisements
Solution
- A Queue is a linear data structure that follows the FIFO (First-In, First-Out) principle, meaning the first element added is the first one to be removed.
- It uses two primary operations: Enqueue (to add an item to the back) and Dequeue (to remove an item from the front). A common example is a line of people waiting for a bus.
shaalaa.com
Is there an error in this question or solution?
2023-2024 (July) Official Board Paper
