I have a question regarding double-ended queue. In double-ended queue does the element at the back have reference to element at the front?
My queue size should be 50, so does that mean, i should set the back of the queue to 50-1? and front to 0?
Cheers.
Nope your queue should have a pointer to the front and pointer to the back. But the the back doesn’t need a pointer to the front.