MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / is_empty

Method is_empty

data_structures/binary_tree/avl_tree.py:22–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 self.tail: int = 0
21
22 def is_empty(self) -> bool:
23 return self.head == self.tail
24
25 def push(self, data: Any) -> None:
26 self.data.append(data)

Callers 1

__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected