Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinStack ¶
type MinStack struct {
// contains filtered or unexported fields
}
MinStack is a simple stack implementation for LeetCode
func (*MinStack) GetMin ¶
GetMin returns the min value of the stack. Operation cost is O(1) because it just returns the pre-calcurated value.
Click to show internal directories.
Click to hide internal directories.