File tree 1 file changed +3
-3
lines changed
src/data-structures/tree/binary-search-tree
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ end findMax
223
223
inorder(root)
224
224
Pre: root is the root node of the BST
225
225
Post: the nodes in the BST have been visited in inorder
226
- if root = ø
226
+ if root ! = ø
227
227
inorder(root.left)
228
228
yield root.value
229
229
inorder(root.right)
@@ -237,7 +237,7 @@ end inorder
237
237
preorder(root)
238
238
Pre: root is the root node of the BST
239
239
Post: the nodes in the BST have been visited in preorder
240
- if root = ø
240
+ if root ! = ø
241
241
yield root.value
242
242
preorder(root.left)
243
243
preorder(root.right)
@@ -251,7 +251,7 @@ end preorder
251
251
postorder(root)
252
252
Pre: root is the root node of the BST
253
253
Post: the nodes in the BST have been visited in postorder
254
- if root = ø
254
+ if root ! = ø
255
255
postorder(root.left)
256
256
postorder(root.right)
257
257
yield root.value
You can’t perform that action at this time.
0 commit comments