Update red_black_tree.py
This commit is contained in:
parent
3b2b98e483
commit
7935ed66ec
@ -329,7 +329,7 @@ class RedBlackTree:
|
||||
|
||||
if node.left is self.black_leaf:
|
||||
return
|
||||
# raise Exception('try rotate left , but the node "{}" has no left child'.format(node.val))
|
||||
# raise Exception('try rotate right , but the node "{}" has no left child'.format(node.val))
|
||||
|
||||
p = self.parent(node)
|
||||
x = node
|
||||
|
Loading…
Reference in New Issue
Block a user