List different operation of stack.
Answers
Answered by
0
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 top element of stack.
isEmpty: Returns true if stack is empty, else false.
Similar questions
Hindi,
6 months ago
Math,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
Math,
1 year ago