answersLogoWhite

0

What do you understand by deque?

Updated: 8/19/2019
User Avatar

Wiki User

9y ago

Best Answer

A double ended queue (or deque ) is a queue where insertion and deletion can be performed at both end that is front pointer can be used for insertion (apart from its usual operation i.e. deletion) and rear pointer can be used for deletion (apart from its usual operation i.e. insertion)

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you understand by deque?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Explain The merits of using a deque to implement a stack in data structure?

Explain The merits of using a deque to implement a stack in data structure


What is difference between enque and dequeue?

deque


How do you write a program to delete elements at both ends of a deque using C plus plus?

The C++ STL (Standard Template Library) provides a std::deque template specifically for this purpose: std::deque<int> deq {}; // default construct an empty deque of type int deq.push_back (42); // deq = {42} deq.push_front (0); // deq = {0, 42} deq.push_back (100); // deq = {0, 42, 100} deq.pop_front (); // deq = {42, 100} deq.pop_back (); // deq = {42} As with all other STL containers, any type or class that can be copy or move constructed can be placed in a std::deque, including other STL containers (even std::deque itself).


Program to delete elements at both ends in a dequeue using c plus plus?

#include<deque> std::deque<int> deq; deq.push_back (42); deq.pop_back (); deq.push_front (0); deq.pop_front ();


What is the birth name of Danny Demanto?

Danny Demanto's birth name is Daniel C. DeQue.


Write a algorithm for a deque operations?

please read data structure (schaum series) books


What is the need of deque?

A double ended queue (or deque ) is a queue where insertion and deletion can be performed at both end that is front pointer can be used for insertion (apart from its usual operation i.e. deletion) and rear pointer can be used for deletion (apart from its usual operation i.e. insertion). So when we need to insert or delete at both end we need deque.


Which data structure allows deletion from both ends and insertion only from one end?

Deque double ended queue


What has the author Nicolaus written?

Nicolaus has written: 'Tractatus sacerdotalis de sacramentis deque divinis officiis et eorum administratibus'


What has the author Philipp Marbach written?

Philipp Marbach has written: 'Assertiones theologicae de Sancta Cruce deque vsu ac veneratione imaginum' -- subject(s): Religious disputations


Spanish for what do you want to do?

(Alg)unas conversaciones diferentes/alternativas


What has the author Franciscus Bachhiesl written?

Franciscus Bachhiesl has written: 'De natura iuris consuetudinarii deque eiusdem applicatione in praecipuis codicibus' -- subject(s): Customary law (Canon law)