Question DSA-QUE-0046
MediumIn a circular queue of capacity n using the 'one empty slot' rule, when is it full?
- A.
When (rear + 1) mod n == front
- B.
When front == 0
- 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
In a circular queue of capacity n using the 'one empty slot' rule, when is it full?
When (rear + 1) mod n == front
When front == 0
Sign up free to see the answer and a step-by-step explanation.
When rear == n − 1
When rear == front