Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
75
def
get_height(node: MyNode | None) -> int:
Callers
4
right_rotation
Function · 0.80
left_rotation
Function · 0.80
insert_node
Function · 0.80
del_node
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected