Question DSA-QUE-0022
EasyStarting with an empty queue, you enqueue 1, 2 and 3 and then dequeue once. Which element is at the front now?
- A.
3
- B.
The queue is empty
- C.
Show answer and explanation
Answer: D
First in, first out: 1 leaves, so 2 is now at the front.