Double-ended Queue

Home > Computer Science > Algorithms and data structures > Stacks and Queues > Double-ended Queue

This type of queue allows elements to be added or removed from both the front and back ends of the queue. It is useful when you need to add or remove elements from both ends of the queue.