Day 4 - Stacks and QueuesQueuesPractice QuestionsOverview

Queue Practice Questions

A curated set of queue problems. These cover the patterns you’ll see in interviews and real systems: queue design, sliding windows, BFS in disguise, and stack-from-queue tricks.

Notice how often the answer is “use a deque.” That’s not a coincidence — a deque is the most flexible queue variant, and most “queue” problems really want either O(1) on both ends or a monotonic deque.

Easy

ProblemPatternStatus
Implement Stack using QueuesTwo-queue / one-queueAvailable
Design Circular QueueModular arrayAvailable
Number of Recent CallsSliding windowAvailable

Medium

ProblemPatternStatus
Sliding Window MaximumMonotonic dequeAvailable
First Non-Repeating Character in a StreamQueue + frequency mapAvailable
Rotting OrangesMulti-source BFSAvailable

More Practice (Coming Soon)

ProblemPatternStatus
Walls and GatesMulti-source BFSComing Soon
Open the LockBFS over statesComing Soon
Perfect SquaresBFSComing Soon
Task SchedulerPriority queueComing Soon
Reveal Cards in Increasing OrderDeque simulationComing Soon
Snakes and LaddersBFSComing Soon