Advertisements
Advertisements
Question
Write an algorithm to implement deletion operation of queue.
Very Short Answer
Advertisements
Solution
- 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
Is there an error in this question or solution?
