Question DSA-QUE-0021
EasyWhich operation removes the element at the front of a queue?
- A.
enqueue
- B.
peek
- C.
Show answer and explanation
Answer: D
Elements leave from the front in the order they arrived.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Queues and Deques question
Which operation removes the element at the front of a queue?
enqueue
peek
Answer: D
Elements leave from the front in the order they arrived.
push
dequeue