Question DSA-QUE-0009
MediumIn a circular queue of size 5 (array indices 0–4), rear is at index 4. Where is the next element inserted if index 0 is free?
- A.
Index 0
- B.
It overflows
- 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 size 5 (array indices 0–4), rear is at index 4. Where is the next element inserted if index 0 is free?
Index 0
It overflows
Sign up free to see the answer and a step-by-step explanation.
Index 4
Index 5