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

Method set_right

data_structures/binary_tree/avl_tree.py:68–69  ·  view source on GitHub ↗
(self, node: MyNode | None)

Source from the content-addressed store, hash-verified

66 self.left = node
67
68 def set_right(self, node: MyNode | None) -> None:
69 self.right = node
70
71 def set_height(self, height: int) -> None:
72 self.height = height

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected