Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lpthong90 authored Feb 21, 2024
1 parent 9376aa9 commit e8c4291
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,11 @@ This package is a implementation collection of tree data structures.
<div class="termy">

```console

$ pip install py-simple-trees

---> 100%

Successfully installed py-simple-trees
```

</div>

## Tree Types
- Binary Tree
Expand All @@ -59,18 +55,18 @@ Successfully installed py-simple-trees
## Basic Usage

```Python
from py_simple_trees import AVLTree
from py_simple_trees import AVLTree, AVLNode

if __name__ == "__main__":
tree = AVLTree()

tree.insert(1, 1)
tree.insert(2, 2)
tree.insert(3, 3)
tree.insert(4, 4)
tree.insert(5, 5)
tree.insert(6, 6)
tree.insert(7, 7)
tree.insert(AVLNode(1, 1))
tree.insert(AVLNode(2, 2))
tree.insert(AVLNode(3, 3))
tree.insert(AVLNode(4, 4))
tree.insert(AVLNode(5, 5))
tree.insert(AVLNode(6, 6))
tree.insert(AVLNode(7, 7))

tree.print()
```
Expand Down

0 comments on commit e8c4291

Please sign in to comment.