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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
