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

Method push

data_structures/binary_tree/avl_tree.py:25–27  ·  view source on GitHub ↗
(self, data: Any)

Source from the content-addressed store, hash-verified

23 return self.head == self.tail
24
25 def push(self, data: Any) -> None:
26 self.data.append(data)
27 self.tail = self.tail + 1
28
29 def pop(self) -> Any:
30 ret = self.data[self.head]

Callers 1

__str__Method · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected