Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / megha jain

Link list is not the right ans as insertion and deletion
can also b in the middle..... ans is Deck(Double Ended
Queue)

Is This Answer Correct ?    23 Yes 2 No

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

Answer / sumit

dequeue is the correct answer.unlike queues elements can be
added at both ends rather than one end ,but not in the middle..

Is This Answer Correct ?    22 Yes 4 No

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

Answer / ujjwal dave

Stack and Queue are also not correct because in stack
elements can be added and deleted only from one end.
In queue addition takes place at one end and deletion from
other.....
we want to add elements at both ends.....so deques is the
only correct answer

Is This Answer Correct ?    17 Yes 3 No

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

Answer / poornakala

linked list is not right. its two way stack. double ended
queue can also cannot be as u need to have 4 pointers for
them... but two way stack needs 2 pointers and can only be
deleted and inserted at the end.

Is This Answer Correct ?    17 Yes 8 No

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

Answer / bhasu

dequeues is the correct

Is This Answer Correct ?    10 Yes 4 No

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

Answer / ractim chakraborty

deque

Is This Answer Correct ?    7 Yes 2 No

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

Answer / 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

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

Answer / sandeep

i think link list is wrong answer and deque is the correct ans
thanks

Is This Answer Correct ?    4 Yes 1 No

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

Answer / loveleen kaur

a deque is a linear list in which elements can be added or
removed at either end but not in the middle..it is the
contraction of name double ended queue..

Is This Answer Correct ?    3 Yes 1 No

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

Answer / gopesh

IT is stack...because we can push or pop at one end.......it can be done using array where one side is fixed or using linked list where either head is kept constant or null node.....

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Data Structures Interview Questions

Write an algorithm for inserting and deleting an element from doubly linked list?

0 Answers  


What is a treemap used for?

0 Answers  


Which is more efficient merge sort vs quicksort?

0 Answers  


Define right-in threaded tree?

0 Answers  


Define root?

0 Answers  


Can array store heterogeneous data?

0 Answers  


How do you find the second largest element in an array of integers?

0 Answers  


Is quicksort greedy algorithm?

0 Answers  


What will be the output of below code?

0 Answers  


What are linked list?

0 Answers  


What is the use of prototype?

0 Answers  


How do signed and unsigned numbers affect memory?

0 Answers  


Categories