Advertisements
Advertisements
प्रश्न
Write an algorithm to implement push operation.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
- Start.
- Initialize
topwith -1. - Input the new element.
- Increment
topby 1. - Store the element at
stack[top]. - Print
Item Inserted. - Stop.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
