mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-24 14:43:37 +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
e949959eff
commit
4fc0c00b90
@ -209,6 +209,7 @@ def get_min_value_node(node: MyNode | None) -> MyNode | None:
|
||||
current_node = current_node.get_left()
|
||||
return current_node
|
||||
|
||||
|
||||
def del_node(root: MyNode | None, data: Any) -> MyNode | None:
|
||||
if root is None:
|
||||
print("Nothing to delete")
|
||||
@ -369,4 +370,4 @@ if __name__ == "__main__":
|
||||
random.shuffle(lst)
|
||||
for i in lst:
|
||||
t.del_node(i)
|
||||
print(str(t))
|
||||
print(str(t))
|
||||
|
Loading…
x
Reference in New Issue
Block a user