InterviewSolution
Saved Bookmarks
| 1. |
Which of the following queue container can expand or shrink from both directions?(a) deque(b) queue(c) priority queue(d) stackI had been asked this question during a job interview.I'd like to ask this question from More Containers topic in chapter Class Hierarchies, Library & Containers of C++ |
|
Answer» CORRECT choice is (a) deque Explanation: Deque is a short form for a DOUBLY ENDED queue which can be expanded and shrinked from any SIDE of the queue either from the FRONT or from the back. |
|