What does `peek()` do in a Deque context?
Correct answer
Returns head element without removing it
Explanation
`peek()` retrieves but does not remove the head of the deque.
Update: Admin added a tag on this question
Topics
By Admin · · 26 views