Zigzag Queue

Home > Computer Science > Algorithms and data structures > Stacks and Queues > Zigzag Queue

A zigzag queue is a collection of elements that can be added, removed or read by traversing the collection in a zigzag pattern. It is useful when you need to selectively access elements in an ordered collection.