Math, asked by storeofmumbai7145, 1 year ago

If the numbers 15, 10, 3, 42 are enqueued onto a queue in that order, what does dequeue return?

Answers

Answered by writersparadise
1

A queue is an abstract data type that follows a First-In-First-Out (FIFO) data structure.  

In other words, the first element that enters the queue comes out of the queue first.  

Let's take a look at this with an example.

If the numbers 15, 10, 3, 42 are enqueued in that order, they get dequeued in the same order 15, 10, 3, 42.

Answered by Anonymous
0

refer pic and mark brain if u like

Attachments:
Similar questions