Skip to content

rdlester/pyavl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyavl

An implementation of AVL trees in Python. Handles duplicate items. Works on any datatype for which comparison operators are defined (tested on strings and numbers)

To run tests:

python path/to/pyavlTests.py

To use:

from pyavl import AvlTree

b = AvlTree()

b.insert(5)
b.insertAll([5,3,4])
b.contains(10)
b.delete(3)

for x in b:
    # iterator yields items in ascending sorted order

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages