Design Circular Queue
Design a circular queue (ring buffer) of fixed capacity with enQueue, deQueue, Front, Rear, isEmpty, and isFull operations, all in O(1) time using modular arithmetic to wrap indices.
Enable JavaScript for the full StreamPrep guide.