MCPcopy Index your code
hub / github.com/qiyuangong/leetcode / top

Method top

python/225_Implement_Stack_using_Queues.py:75–80  ·  view source on GitHub ↗

:rtype: int

(self)

Source from the content-addressed store, hash-verified

73 self.curr_top = self.queue1[0]
74
75 def top(self):
76 """
77 :rtype: int
78 """
79 if self.empty() is False:
80 return self.curr_top
81
82 def empty(self):
83 """

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.95

Tested by

no test coverage detected