[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-12 14:26:30 +00:00
parent 0719a18d47
commit ca0ee11eb5

View File

@ -226,7 +226,9 @@ def del_node(root: MyNode, data: Any) -> MyNode | None:
else:
root.set_right(del_node(right_child, data))
root.set_height(my_max(get_height(root.get_right()), get_height(root.get_left())) + 1)
root.set_height(
my_max(get_height(root.get_right()), get_height(root.get_left())) + 1
)
balance_factor = get_height(root.get_left()) - get_height(root.get_right())