mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-22 08:21:12 -04:00
Update bs_sucessor_and_precessor.py
This commit is contained in:
parent
27f5ce1c6f
commit
122a535241
1 changed files with 0 additions and 2 deletions
|
@ -6,7 +6,6 @@
|
|||
def successor(root):
|
||||
|
||||
root = root.right
|
||||
|
||||
while root.left:
|
||||
root = root.left
|
||||
|
||||
|
@ -16,7 +15,6 @@ def successor(root):
|
|||
def predecessor(root):
|
||||
|
||||
root = root.left
|
||||
|
||||
while root.right:
|
||||
root = root.right
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue