Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ pop
Method
pop
python/0155-min-stack.py:11–13 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
9
self.minStack.append(val)
10
11
def
pop(self) -> None:
12
self.stack.pop()
13
self.minStack.pop()
14
15
def
top(self) -> int:
16
return
self.stack[-1]
Callers
15
removeKdigits
Method · 0.45
isValid
Method · 0.45
permute
Method · 0.45
carFleet
Method · 0.45
backtrack
Method · 0.45
dfs
Method · 0.45
shortestSubarray
Method · 0.45
countStudents
Method · 0.45
finalPrices
Method · 0.45
validateStackSequences
Method · 0.45
remove
Method · 0.45
getUnqueuedNeighbors
Method · 0.45
Calls
no outgoing calls
Tested by
1
shortestSubarray
Method · 0.36