With respect to deque which of the following is true?

With respect to deque which of the following is true? Correct Answer Insertion and deletion can be done at front and rear ends

Deque: 

  • Double ended queue
  • Generalized version of queue
  • Allows to insert and delete at both front and rear ends.


Hence option 4 is the correct answer.

Related Questions

What type of access does deque and vector provide?
What is the primary difference between a `Queue` and a `Deque` in the Java Collections Framework?