Question DSA-QUE-0002
EasyWhich operation adds an element to a queue?
- A.
push to the top
- B.
enqueue
- C.
Show answer and explanation
Answer: B
enqueue adds at the rear; dequeue removes from the front.
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 adds an element to a queue?
push to the top
enqueue
Answer: B
enqueue adds at the rear; dequeue removes from the front.
dequeue
pop