From 6ec7a2f577facedc65ebe6a91026ed444b96cf3a Mon Sep 17 00:00:00 2001 From: Eyas Ranjous Date: Fri, 10 Apr 2020 00:54:23 -0500 Subject: [PATCH] update --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d6313c2..6af36be 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ const bst = new AvlTree(); ### .insert(key, value) -inserts a node with key/value into the tree. Inserting an node with existing key, would update the existing node's value with the new inserted one. AVL tree will rotate nodes properly if the tree becomes unbalanced with the insertion. +inserts a node with key/value into the tree. Inserting an node with existing key, would update the existing node's value with the new one. AVL tree will rotate nodes properly if the tree becomes unbalanced during insertion. @@ -378,7 +378,7 @@ bst.traversePostOrder((node) => console.log(node.getKey())); ``` ### .remove(key) -removes a node from the tree by its key. AVL tree will rotate nodes properly if the tree becomes unbalanced with the deletion. +removes a node from the tree by its key. AVL tree will rotate nodes properly if the tree becomes unbalanced during deletion.
params
@@ -431,7 +431,7 @@ console.log(bst.root()); // null ### BinarySearchTreeNode #### .getKey() -returns the node's key that is used to compare with other. +returns the node's key that is used to compare with other nodes.
params
return