155. Min Stack
# easy
It's easy to consider to use two stacks, one stack is the normal one, the other stack stores the minimum elements.
key idea: min_stack - 存储push to stack目前为止的最小值,所以可能有很多值,易错点:在push时,即便这个数大于等于min_stack.top()的数,也要压入min_stack
Last updated