I have been struggling with this question in my data structures textbook. I know how the f and r pointers in circular queue works, however, I am having a bit of a trouble cracking this question in my text book. I would be grateful if someone can please guide me or provide some hints. The question is as follows :
Suppose an initially empty circular queue Q has performed a total of 32 enqueue operations, 6 first operations, and 15 dequeue operations, 5 of which returned null to indicate an empty queue.
given that the size of the cicular queue never exceeded 30, what would be the value of the variable f after all operations have been performed?