Fundamentals
/
Queue with Array
⏸
00:00
↻
← Prev
Next →
▶
Question
Implement a circular queue with fixed capacity n supporting enqueue(value) (returns true on success, false if full) and dequeue() (returns value or null if empty). Process a list of operations and return outputs from dequeue calls.
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
10