Math, asked by devishome4231, 11 months ago

Write a function to insert an element in a queue

Answers

Answered by shivendrasingh12911
2

Queue is also an abstract data type or a linear data structure, just like stack data structure, in which the first element is inserted from one end called the REAR(also called tail), and the removal of existing element takes place from the other end called as FRONT(also called head).

This makes queue as FIFO(First in First Out) data structure, which means that element inserted first will be removed first.

Similar questions