Deque
Deque
PRESENTED BY
Apurba Mondal
What is deque?
● Deque or double-ended queues are redefined queues in
which elements can be added or removed at either end
but not in the middle.
Types of Deque
There are two types of deque:
● Input Restricted Deque-is a deque which allows
java.util.LinkedList();
or
java.util.ArrayDeque();
Creating a Deque:
Before we can use a Java Deque, we must create an instance
of one of the classes that implements the deque interface.