Chapter 19: Problem 22
Suppose that queue is implemented as an array with the special reserved slot, as described in this chapter. Suppose that the size of the array implementing queue is \(100 .\) Also, suppose that the value of queueFront is 74 and the value of queueRear is 99 a. What are the values of queueFront and queueRear after adding an element to queue? b. What are the values of queueFront and queueRear after removing an element from queue? Also, what is the position of the removed queue element?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.