Search
⌘K
Get Premium
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).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.