What is queue in data structure?
Answer / Puja Bharti
A queue is a linear data structure that follows the First-In-First-Out (FIFO) principle, meaning the first element to be inserted is the first one to be removed. It is used when elements need to be processed in the order they arrive, such as in simulation and real-life scenarios like waiting in line.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the term base case?
How efficient is binary search?
what are the applications of Linked Lists?
Write the postfix form of the expression: (a + b) * (c - d)
Which sorting is best and why?
What is pivot in quicksort?
State the demerits of linked representation of binary trees?
What is heap tree explain with example?
Why might quick sort might be better than merge sort?
How does arraylist size work?
What is difference between static and dynamic array?
Does arraylist contain duplicates?