Advertisements
Advertisements
प्रश्न
Write an algorithm to implement deletion operation of queue.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
- Start.
- If
front = -1, printQueue Emptyand stop. - Store
queue[front]as the deleted item. - If
front = rear, set both to -1; otherwise incrementfrontby 1. - Print
Item Deleted. - Stop.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
