Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/HuberTRoy/leetCode
/ __init__
Method
__init__
Stack/GetMinStack.py:60–63 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
58
一个可以在O(1)时间内获取出最小值的栈。
59
""
"
60
def
__init__(self):
61
super().__init__()
62
63
self.minStack = Stack()
64
65
def
push(self, value):
66
super().push(value)
Callers
nothing calls this directly
Calls
2
Stack
Class · 0.85
__init__
Method · 0.45
Tested by
no test coverage detected