A data structure where elements can be added or removed at either end but not in the middle is called ____________.
A
Requeue
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Queues
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Dequeue
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Linked lists
No worries! We‘ve got your back. Try BYJU‘S free classes today!
E
Stacks
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C Dequeue Dequeue (double-ended queues) are the refined queues in which elements can be added or removed at either end but not in the middle. There are two variations of a dequeue- Input restricted dequeue and Output restricted dequeue.