MCQs>IT & Programming>Data Structures And Algorithms MCQs>You have implemented a queue with a circular array keeping track of the first, the last, and the count (the number of items in the array). Suppose the first is zero, and the last is CAPACITY-1, what can you say about the count?
Data Structures And Algorithms MCQs
You have implemented a queue with a circular array keeping track of the first, the last, and the count (the number of items in the array). Suppose the first is zero, and the last is CAPACITY-1, what can you say about the count?
Answer
Correct Answer: The count must be CAPACITY
Explanation:
Note: This Question is unanswered, help us to find answer for this one