Question DSA-QUE-0035
EasyWhat does the peek (front) operation of a queue do?
- A.
Returns the front element without removing it
- B.
Adds an element
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Queues and Deques question
What does the peek (front) operation of a queue do?
Returns the front element without removing it
Adds an element
Sign up free to see the answer and a step-by-step explanation.
Empties the queue
Removes the rear element