child instead of children

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
isidroas 2023-08-14 20:42:09 +02:00 committed by GitHub
parent ba2efa2181
commit 7973b7b265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ class BinarySearchTree:
if new_children is not None: # reset its kids
new_children.parent = node.parent
if node.parent is not None: # reset its parent
if node.is_right: # If it is the right children
if node.is_right: # If it is the right child
node.parent.right = new_children
else:
node.parent.left = new_children