Which of the following is not a valid Deque method?

  1. removeFirst()
  2. putLast()
  3. insertEnd()
  4. pollLast()
Correct answer insertEnd()

Explanation

`insertEnd()` is not part of the Deque API in Java.

Update: Admin added a tag on this question

Topics

By Admin · · 37 views