Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.