What is a Queue?

This lesson gives an introduction to the queue data structure, its various uses, and types. We will also go through the inner workings of a Queue by briefly discussing each of its functions.

Introduction #

Similar to the Stack, a Queue is another linear data structure that stores the elements in a sequential manner. The only significant difference between Stack and Queue is that instead of using the LIFO principle, Queue implements the FIFO method which is short for First in First Out ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy