What is queue in data structure?



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

Post New Answer

More Data Structures Interview Questions

Explain the term base case?

1 Answers  


How efficient is binary search?

1 Answers  


what are the applications of Linked Lists?

1 Answers  


Write the postfix form of the expression: (a + b) * (c - d)

1 Answers  


Which sorting is best and why?

1 Answers  


What is pivot in quicksort?

1 Answers  


State the demerits of linked representation of binary trees?

1 Answers  


What is heap tree explain with example?

1 Answers  


Why might quick sort might be better than merge sort?

1 Answers  


How does arraylist size work?

1 Answers  


What is difference between static and dynamic array?

1 Answers  


Does arraylist contain duplicates?

1 Answers  


Categories