Queue

Queue data structure behaves similar to group of people standing in a line (queue) buying tickets turn by turn. Queue is also referred as FIFO (First In First Out) data structure. The element which enters the queue is the first one to leave the queue.

We have access to front of the queue with the only operation being allowed as deletion and to the rear of the queue with the only operation being allowed as insertion.