Question DSA-QUE-0045
MediumA circular queue of capacity 6 has front = 4 and rear = 1 (both indexes inclusive). How many elements does it hold?
- A.
5
- B.
4
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Queues and Deques question
A circular queue of capacity 6 has front = 4 and rear = 1 (both indexes inclusive). How many elements does it hold?
5
4
Sign up free to see the answer and a step-by-step explanation.
3
2