Advertisements
Advertisements
प्रश्न
Write an algorithm to implement insertion operation of queue.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
- Start.
- If both
frontandrearare -1, increment both by 1; otherwise incrementrearby 1. - Store the new element at
queue[rear]. - Print
Item Inserted. - Stop.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
