Algorithms and Data Structures · Junior · Question 20 of 75

What does a queue guarantee?

Explanation

A queue is FIFO: elements leave in the order they arrived, like people in a line. "The smallest first" describes a priority queue, which is a different structure.

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 20

Test yourself

Take the Algorithms and Data Structures · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz