Advertisements
Advertisements
Question
Write an algorithm to implement push operation.
Very Short Answer
Advertisements
Solution
- Start.
- Initialize
topwith -1. - Input the new element.
- Increment
topby 1. - Store the element at
stack[top]. - Print
Item Inserted. - Stop.
shaalaa.com
Is there an error in this question or solution?
