Skip to content

Commit b36304c

Browse files
committed
add update to readme
1 parent 02d583e commit b36304c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Red-Black Tree/README.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ Tree:
3939
* `insert(key:)` Inserts the key value into the tree
4040
* `delete(key:)` Delete the node with the respective key value from the tree
4141
* `verify()` Verifies that the given tree fulfills the red-black tree properties
42+
* `count()` Returns how many nodes in the tree
43+
* `isEmpty()` Returns if the tree has no nodes
44+
* `allElements()` Returns an array containing all nodes (in-order traversal) in the tree.
4245

4346
The rotation, insertion and deletion algorithms are implemented based on the pseudo-code provided in [CLRS]
4447

0 commit comments

Comments
 (0)