← Back

🎠 Ring Buffer Carousel

Circular Queue — Wrap-around Index Management

0/8
Size/Capacity
➕ Enqueue
➖ Dequeue
📊 Statistics
-1
Front
-1
Rear
0
Size
Yes
Empty
🎨 Legend
Front (F)
Rear (R)
Both
📐 Formula
rear = (rear + 1) % capacity
front = (front + 1) % capacity