← Back

Circular Queue

Fixed-size buffer using head & tail indices modulo capacity.

queuecircularUpdated 2025-09-01

Full Condition

  • (tail+1)%cap == head

Empty Condition

  • head == tail