Login
Remember
Register
Ask a Question
What are some key operations performed on the Deque data structure?
0
votes
asked
Aug 10, 2023
in
DBMS
by
DavidAnderson
What are some key operations performed on the Deque data structure?
dbms
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 10, 2023
by
DavidAnderson
Following are the key operations available deque:
insertFront()
: This adds an element to the front of the Deque.
insertLast()
: This adds an element to the rear of the Deque.
deleteFront()
: This deletes an element from the front of the Deque.
deleteLast()
:This deletes an element from the front of the Deque.
getFront()
: This gets an element from the front of the Deque.
getRear()
: This gets an element from the rear of the Deque.
isEmpty()
: This checks whether Deque is empty or not.
isFull()
: This checks whether Deque is full or not.
...