Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is Circular Queue?

circular Queue
0
Posted

What is Circular Queue?

0

In a normal Queue when queue becomes full we can not add more items so following items are lost. But in a circular queue when queue becomes full it will start overwriting the items from beginning so that new items/data won’t waste. It is logical also because it is assumed that if an item is useful it would have been fetched before queue get full and if it is still there when queue has reached to it’s capacity that means it is not very useful and overwriting this won’t harm. So circular queue will preserve the useful information.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.