Write a function to insert an element in a queue
Answers
Answered by
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
Social Sciences,
6 months ago
Computer Science,
6 months ago
Math,
6 months ago
Math,
11 months ago
Math,
1 year ago
Social Sciences,
1 year ago