// TOPIC
#queues
3 articles
◆Beginner
01Stacks and Queues: Order Matters
The two simplest constrained collections in CS — and the ones that show up everywhere once you know what to look for. Understand LIFO vs FIFO, how the call stack works, and when each structure is exactly the right tool.
#stacks#queues#data-structures
8 min◆BeginnerAmazonGoogle
02Deques (Double-Ended Queues)
A deque gives you O(1) push and pop from both ends — and the sliding-window-maximum trick that turns O(n²) brute-force problems into clean O(n) solutions.
#deques#queues#stacks
11 min◆BeginnerAmazonGoogle
03Queues and Deques
The queue data structure enforces one rule — first in, first out — and that rule shows up everywhere from BFS to task schedulers. Learn how to get O(1) on both ends without the hidden tax of a naive array.
#queues#data-structures#bfs
10 min