Skip to content

Commit

Permalink
fix: three errors (trekhleb#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
ly15927086342 authored Aug 21, 2020
1 parent be185ac commit c093fe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data-structures/tree/binary-search-tree/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ end findMax
inorder(root)
Pre: root is the root node of the BST
Post: the nodes in the BST have been visited in inorder
if root = ø
if root != ø
inorder(root.left)
yield root.value
inorder(root.right)
Expand All @@ -237,7 +237,7 @@ end inorder
preorder(root)
Pre: root is the root node of the BST
Post: the nodes in the BST have been visited in preorder
if root = ø
if root != ø
yield root.value
preorder(root.left)
preorder(root.right)
Expand All @@ -251,7 +251,7 @@ end preorder
postorder(root)
Pre: root is the root node of the BST
Post: the nodes in the BST have been visited in postorder
if root = ø
if root != ø
postorder(root.left)
postorder(root.right)
yield root.value
Expand Down

0 comments on commit c093fe4

Please sign in to comment.