250x250
반응형
Notice
Recent Posts
Recent Comments
Link
목록min stack (1)
N
(Leet Code c++)Min Stack
155. 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(val) pushes the element val onto the stack. void pop() removes the element on the top of the stack. int top() gets the top element of the stack. int getMin() retrieves the minimum element in the stack. Ex..
Leet Code 알고리즘
2021. 7. 19. 10:12