MinStack1 [leetcode] 155.Min Stack https://leetcode.com/problems/min-stack/description/ Min Stack - LeetCode Can you solve this real interview question? Min Stack - Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: * MinStack() initializes the stack object. * void push(int val) pushes t leetcode.com 문제 이해 MinStack을 디자인 Stack과 모든게 동일하지만 getMin()을 호출 시 st.. 2023. 8. 26. 이전 1 다음