Which of the following operations is not supported directly by Deque?

  1. Insertion at both ends
  2. Removal from both ends
  3. Random access by index
  4. Peeking from both ends
Correct answer Random access by index

Explanation

Deque does not support random access like a List.

Update: Admin added a tag on this question

Topics

By Admin · · 30 views