Skip to content

Commit e242e6b

Browse files
authored
Merge pull request #21 from datastructures-js/development
update
2 parents c803ae7 + 6ec7a2f commit e242e6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const bst = new AvlTree();
7575

7676
### .insert(key, value)
7777

78-
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.
78+
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.
7979

8080
<table>
8181
<tr><th align="center" colspan="2">params</th></tr>
@@ -378,7 +378,7 @@ bst.traversePostOrder((node) => console.log(node.getKey()));
378378
```
379379

380380
### .remove(key)
381-
removes a node from the tree by its key. AVL tree will rotate nodes properly if the tree becomes unbalanced with the deletion.
381+
removes a node from the tree by its key. AVL tree will rotate nodes properly if the tree becomes unbalanced during deletion.
382382

383383
<table>
384384
<tr><th align="center" colspan="3">params</th></tr>
@@ -431,7 +431,7 @@ console.log(bst.root()); // null
431431
### BinarySearchTreeNode
432432

433433
#### .getKey()
434-
returns the node's key that is used to compare with other.
434+
returns the node's key that is used to compare with other nodes.
435435

436436
<table>
437437
<tr><th>return</th></tr>

0 commit comments

Comments
 (0)