what is mean by d-queue?

Answer Posted / sudhir & kranti

It is one of the special variation of queue which allows the elements to be inserted and removed at both ends (rear and front) but not at middle.
De-queue can be of 2 types
i)Input restricted de-queue: elements can be removed at both ends but insertion at one end.
ii)Output restricted de-queue: elements can be inserted at both ends but deletion at one end.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is treeset sorted?

512


What is binary search in data structure?

451


Can you have an arraylist of arrays?

504


Explain merge sort algorithms.

557


Is red black tree balanced?

497






What is a subtree in data structures?

505


What should I learn first data structures or algorithms?

566


What is the difference between hashset and treeset?

503


How do I remove a value from a list?

452


Why is sorting important?

468


What is the difference between an array and vector?

513


What are the two types of data?

469


Can arraylist shrink?

482


Why do we use insertion sort?

476


What is the difference between a hashmap and hashtable?

432