Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lpthong90 committed Mar 3, 2024
2 parents aafa9b3 + 1c0656e commit f9ff75c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
python-version:
- "3.8"
- "3.9"
# - "3.10"
# - "3.11"
# - "3.12"
- "3.10"
- "3.11"
- "3.12"
fail-fast: false

steps:
Expand Down Expand Up @@ -110,4 +110,4 @@ jobs:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
jobs: ${{ toJSON(needs) }}
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# py-simple-trees

<p align="center">
<a href="https://lpthong90.dev/projects/099989-py-simple-trees.html">
<img class="project-thumnail" src="https://lpthong90.dev/py-simple-trees/assets/images/thumbnail.png" alt="Python Simple Trees">
</a>
</p>
<p align="center">
<em>This package is a implementation collection of tree data structures.</em>
</p>
Expand Down Expand Up @@ -41,15 +46,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 +60,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 f9ff75c

Please sign in to comment.