Stack And Queue Question:

Can you explain queue operation?

Stack And Queue Interview Question
Stack And Queue Interview Question

Answer:

Queue is a data structure that follows First in First out strategy.

Queue Operations:

Push – Inserts the element in the queue at the end.
Pop – removes the element out of the queue from the front
Size – Returns the size of the queue
Front – Returns the first element of the queue.
Empty – to find if the queue is empty.


Previous QuestionNext Question
Can you please explain stack operation?Tell me how to implement queue using stack?