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

Method empty

python/225_Implement_Stack_using_Queues.py:82–86  ·  view source on GitHub ↗

:rtype: bool

(self)

Source from the content-addressed store, hash-verified

80 return self.curr_top
81
82 def empty(self):
83 """
84 :rtype: bool
85 """
86 return len(self.queue1) == 0
87

Callers 5

topMethod · 0.95
dfsMethod · 0.95
maxAreaOfIslandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected