COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of the following data structure allows you to delete the elements from both the ends while insertion from only one end?
|
Input-restricted queue
|
|
Output-restricted queue
|
|
Priority queue
|
|
Circular Queue
|
Explanation:
Detailed explanation-1: -Explanation: The answer is Queue.
Detailed explanation-2: -Deque is a data structure allowing insertion and deletion from both ends.
Detailed explanation-3: -Stack is a linear data structure in which the insertion and deletion operations are performed at only one end. In a stack, adding and removing of elements are performed at single position which is known as “top".
There is 1 question to complete.