Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/qiyuangong/leetcode
/ peekMax
Method
peekMax
python/716_Max_Stack.py:38–43 ·
view source on GitHub ↗
:rtype: int
(self)
Source
from the content-addressed store, hash-verified
36
return
self.stack[-1]
37
38
def
peekMax(self):
39
""
"
40
:rtype: int
41
""
"
42
if
len(self.max_stack) != 0:
43
return
self.max_stack[-1]
44
45
def
popMax(self):
46
""
"
Callers
1
popMax
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected