Mainly the following three basic operations are performed in the stack:
- Push: Adds an item in the stack. If the stack is full, then it is said to be an Overflow condition.
- Pop: Removes an item from the stack. ...
- Peek or Top: Returns the top element of the stack.
- isEmpty: Returns true if the stack is empty, else fals
Comments
Post a Comment