A queue is an abstract data type that maintains the order in which elements were added to it, allowing the oldest elements to be removed from the front and new elements to be added to the rear. This is called a first-in-first-out (fifo) data structure because the first element added to the queue (i.E., the one that has been waiting the longest) is always the first one to be removed.
Answers
Answered by
0
Answer:
A queue is an abstract data type that maintains the order in which elements were added to it, allowing the oldest elements to be removed from the front and new elements to be added to the rear.
Similar questions