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

Method set_left

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

Source from the content-addressed store, hash-verified

63 self.data = data
64
65 def set_left(self, node: MyNode | None) -> None:
66 self.left = node
67
68 def set_right(self, node: MyNode | None) -> None:
69 self.right = node

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected