In the Queue the enqueue opeartion is always going to perform at the rear end and the dequeue is always at the front so why in the video sir replace the pointer it seems confusing.
Front and rear pointer
for which are you taking this??
explain a bit more
in this video no pointer is taking only two variable is used front and rear
if you have more doubt
feel free to ask
@asaurabh_26 got it basically the think the something we take the front and rear varibles point to -1 at the intially stage but in the video front =0 and rear = n-1 where n is the size of the arrays both approaches works fine
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.