# npm

## avl-trees-js

1.2.3 • Public • Published

avl-trees-js is a light package that allows you to perform all the avl tree operations efficiently

## Importing

### Traversing

you can traverse in: inOrder,postOrder and PreOrder

e.g

by default you traverse in order i.e

### Getting Maximum and Minimum

returns the node with the maximum value. To get the value just add getData() to the retrieved node. note: .getData() retrieves the stored value in a node i.e

same applies to min except we use Min() in place of Max()

### deleting nodes from the tree

removes the node with the value and rebalances the tree

### finding the node with the a given value

returns null incase no node with that value exists

## Keywords

### Install

`npm i avl-trees-js`

3

1.2.3

MIT

18.5 kB

4