design a stack that supports additional operation min() which should return minimum element from the stack
Answers
Answered by
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
Psychology,
7 months ago
Social Sciences,
7 months ago
Science,
7 months ago
Social Sciences,
1 year ago
History,
1 year ago
Math,
1 year ago