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

Method set_height

data_structures/binary_tree/avl_tree.py:71–72  ·  view source on GitHub ↗
(self, height: int)

Source from the content-addressed store, hash-verified

69 self.right = node
70
71 def set_height(self, height: int) -> None:
72 self.height = height
73
74
75def get_height(node: MyNode | None) -> int:

Callers 4

right_rotationFunction · 0.80
left_rotationFunction · 0.80
insert_nodeFunction · 0.80
del_nodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected