Skip to main content

Queues & Deques Quiz

Editorial

16 questions across the two Queues & Deques lessons: queues and ring buffers, the simulations a queue runs, and the monotonic deque for windows and earlier answers. Pick an answer to see whether it's right and why. Nothing is saved, so you can take it again.

If one trips you up, its lesson is Introduction to Queues or Monotonic Deque: the Window's Maximum.

Quiz

1 / 16

Multiple choice

A ring buffer with room for 6 has head = 4 and count = 3. Which slot does the next enqueue write?