DATA STRUCTURE
Programming and Technical
Programming
Definition
Which of these data structure allow elements to be added or removed at either end but not in the middle
a) linked lists b)Deque
c)stack d)Queue
Read Solution (Total 20)
-
- D queue...
- 9 years agoHelpfull: Yes(5) No(0)
- Dequeue , because Dequeue allow elements to be inserted through both ends
- 9 years agoHelpfull: Yes(3) No(0)
- queue obviously
- 9 years agoHelpfull: Yes(2) No(14)
- deque allows deletion and insertion at both ends since it is double ended queue
- 9 years agoHelpfull: Yes(2) No(0)
- deque...because insertion and deletion can be done through both end
- 9 years agoHelpfull: Yes(0) No(0)
- b. deque........
- 9 years agoHelpfull: Yes(0) No(0)
- queue because in queue we can add element from start or from last
- 8 years agoHelpfull: Yes(0) No(1)
- Stack .since if we want middle element we have to traverse from top ,pop elements since desired elemenmt not come and then push.so stack does not allow middle element to remove
- 8 years agoHelpfull: Yes(0) No(1)
- queue bcz in queue,we insert the data from read and front
- 8 years agoHelpfull: Yes(0) No(0)
- d queue it allows elemnts frm both sides bt not middle
- 8 years agoHelpfull: Yes(0) No(0)
- option b is correct
- 8 years agoHelpfull: Yes(0) No(0)
- option -c Stack
because stack allows elements to be added or removed from last (last in first out). - 8 years agoHelpfull: Yes(0) No(2)
- Deque which is also known as "deck" or "doubly ended" queue,is the data structure that allows insertion and deletion at both the ends but not in the middle.
- 8 years agoHelpfull: Yes(0) No(0)
- Ans is (D) because queue follows FIFO order and we can add,delete at either sides of the list.
- 8 years agoHelpfull: Yes(0) No(0)
- Queue..bcs it operate based on first in first out
- 8 years agoHelpfull: Yes(0) No(1)
- deqeue because in deque we can nsert in both side
- 7 years agoHelpfull: Yes(0) No(0)
- Deque in deque we can insert and remove element at either end
- 6 years agoHelpfull: Yes(0) No(0)
- b) Deque : perform both end but nor middle
- 6 years agoHelpfull: Yes(0) No(0)
- it should be queue
- 6 years agoHelpfull: Yes(0) No(0)
- dequeue because its double ended queue its design for this type of problem.
- 6 years agoHelpfull: Yes(0) No(0)
DATA STRUCTURE Other Question