In circular queue , is there a way to delete an item not only from bottom but from anywhere??
In circular queue , is there a way to delete an item not only from bottom but from anywhere??
Well for a circular queue you don't delete the bottom, you remove the head ( or top if you want to use that terminology ). Let me help you read up on this.
Yea,just a mistake!!
can we delete the item from anywhere?
Then it wouldn't be a circular queue now would it? Here is some suggested reading for this.
I need to know whether there is a program like circular queue,but deleting can be done anywhere
If deleting can be done anywhere, then it's just a linked list and not a queue.
What do you mean by a circular queue?
Is it a circular buffer, or a linked-list where the last item points back to the first?
If it were truly a queue, then you would not remove it from the middle, you would wait until it reaches the head and then if upon popping the item off, you find that you don't want it afterall, then and only then do you throw it away.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"