Question DSA-QUE-0065
HardA circular queue of capacity 8 (array indexes 0–7) has front = 6 and rear = 2, with rear pointing at the last element. How many elements does it hold?
- A.
3
- B.
6
- C.
Sign up free to see the answer and a step-by-step explanation.