Pop operation in circular queue

Here, in the pop function, we move the front pointer when pop is called but the element stays. How do we delete the element from array completely like stack if we want too?

Also, as per the example, there are 2 pop then a push, so will push(7) just overwrite the 1 at index 0 here?

hello @sonalbera

yeah u got it right, it will just overwrite the value present at that particular index

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.