In which data structure, elements can be added or removed at
either end, but not in the middle?

Answer Posted / vaishali naidu

Double ended queue is the right answer but stack and queue
are also right answers as they allow LIFO and FIFO
principles not deletion or inserting from middle. IF its a
priority queue then we can insert the elements in between.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a dequeue?

554


Which sorting is best?

489


Which sorting algorithm is the slowest?

479


What are the types of algorithms?

563


How will you represent a linked list in a graphical view?

654






Is merge sort better than quick?

498


How can we reverse a singly linked list?

511


Define in brief an array.

530


Where is data structure used?

550


Can nsarray contain nil?

465


Explain what do you mean by insertion sort, bubble sort and selection sort? Also, explain the differences among the functionalities of the three sorts.

594


Explain stacks and queues in detail.

740


State the properties of b tree.

528


What are linked lists good for?

479


What is meant by binary tree traversal?

572