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

Method get_height

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

Source from the content-addressed store, hash-verified

280 self.root: MyNode | None = None
281
282 def get_height(self) -> int:
283 return get_height(self.root)
284
285 def insert(self, data: Any) -> None:
286 print("insert:" + str(data))

Callers 1

__str__Method · 0.95

Calls 1

get_heightFunction · 0.85

Tested by

no test coverage detected