mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-06 22:05:54 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
0719a18d47
commit
ca0ee11eb5
@ -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())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user