Explain the queue operation in brief

Explain the queue operation in brief.

E

Expert

Verified

Queue is a data structure which follows FIFO (First in First out) strategy.

Queue Operations are as follows:

a. Push – In this operation inserts the element within the queue at the end.

b. Pop – In this operation eliminates the element out of the queue from the front

c. Size – In this operation returns the size of the queue

d. Front – In this operation returns the primary element of the queue.

e. Empty – To determine when the queue is empty.

   Related Questions in Data Structure & Algorithms

©TutorsGlobe All rights reserved 2022-2023.