Leetcode 1188. Design Bounded Blocking Queue
Implement a thread-safe bounded FIFO queue with a fixed capacity that supports enqueue (blocks when full), dequeue (blocks when empty), and size operations. The core challenge is correct synchronization—ensuring threads block and wake appropriately without race conditions, deadlocks, or lost wake-ups (using locks/condition variables or semaphores).
Asked at:
OpenAI
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Late July, 2026
OpenAI
Staff
Design a Queue with a Dead Letter Queue
Hello Interview Premium
Your account is free and you can post anonymously if you choose.