MCPcopy Create free account
hub / github.com/careercup/ctci / empty

Method empty

python/Chapter 3/Question3_6/ChapQ3.6.py:6–7  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4 def push(self, item):
5 self.append(item)
6 def empty(self):
7 return len(self) == 0
8
9 def sort_stack(s):
10 r = Stack()

Callers 1

sort_stackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected