0 votes
in DBMS by

What are some key operations performed on the Deque data structure?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Aug 10, 2023 in DBMS by DavidAnderson
+1 vote
asked Dec 4, 2022 in DBMS by SakshiSharma
...