MCPcopy
hub / github.com/qiyuangong/leetcode / top

Method top

python/716_Max_Stack.py:32–36  ·  view source on GitHub ↗

:rtype: int

(self)

Source from the content-addressed store, hash-verified

30 return self.stack.pop(-1)
31
32 def top(self):
33 """
34 :rtype: int
35 """
36 return self.stack[-1]
37
38 def peekMax(self):
39 """

Callers 1

popMaxMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected