Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/qiyuangong/leetcode
/ pop
Method
pop
python/716_Max_Stack.py:24–30 ·
view source on GitHub ↗
:rtype: int
(self)
Source
from the content-addressed store, hash-verified
22
self.max_stack.append(x)
23
24
def
pop(self):
25
""
"
26
:rtype: int
27
""
"
28
if
len(self.stack) != 0:
29
self.max_stack.pop(-1)
30
return
self.stack.pop(-1)
31
32
def
top(self):
33
""
"
Callers
15
popMax
Method · 0.95
solve
Method · 0.45
cloneGraph
Method · 0.45
remove
Method · 0.45
longestValidParentheses
Method · 0.45
superPow
Method · 0.45
postorderTraversal
Method · 0.45
merge
Method · 0.45
findSecondMinimumValue
Method · 0.45
longestConsecutive
Method · 0.45
inorderTraversal
Method · 0.45
next
Method · 0.45
Calls
no outgoing calls
Tested by
1
findUnsortedSubarray
Method · 0.36