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