Skip to content

noobSam1122/avl-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

const bst = new BST({
    comparator: (value, nodeValue) => {
        return value - nodeValue;
    }
});
const insertion = [92, 9, 6, 37, 66, 27, 74, 54, 30, 53, 80, 15, 36, 71, 40, 57, 49, 56, 23]
insertion.forEach(v => { bst.insert(v) });

bst.inOrder((value, node) => {
    console.log(value);
})
bst.remove(6);

const node = bst.search(27);
console.log(node);

bst.clear();

About

AVL tree implementation on js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published