Computer Science, asked by priyagosain6003, 1 year ago

design a stack that supports additional operation min() which should return minimum element from the stack

Answers

Answered by Nancy984
0

stack::pop()

stack::pop() is a public member function that is used to remove the top-most element of the stack. Since,there is only one end for insertion and deletion in stack,therefore the element added recently would be on the top of satck,and would be the first to get out of the stack.

Similar questions