MCPcopy
hub / github.com/HuberTRoy/leetCode / get_top

Method get_top

Stack/GetMinStack.py:44–48  ·  view source on GitHub ↗

查看栈顶的数据但不压出。

(self)

Source from the content-addressed store, hash-verified

42 return self.stored.pop()
43
44 def get_top(self):
45 """
46 查看栈顶的数据但不压出。
47 """
48 return self.stored[-1]
49
50 def empty(self):
51 if self.stored:

Callers 3

pushMethod · 0.80
get_minMethod · 0.80
peekMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected