Computer Science, asked by shreyaupadhyay718, 8 months ago

Explain insertion algorithm of simple queue in data structure

Answers

Answered by piyushsahu624
0

Answer:

Queue is a FIFO( First in First Out ) structure. Once a new element is inserted into the Queue, all the elements inserted before the new element in the queue must be removed, to remove the new element. peek( ) function is oftenly used to return the value of first element without dequeuing it.

Similar questions