Methods for rotating binary tree nodes
npm install @shlappas/rotating-treerotating-tree.jsA simple generic module that allows the manipulation of binary tree nodes via
four rotation methods:
- single left (AVL "LL" rotation)
- single right (AVL "RR" rotation)
- double left (AVL "LR" rotation)
- double right (AVL "RL" rotation)
Just install it with your favourite package manager!
``bash`
yarn add @shlappas/rotating-tree
`bash``
npm install @shlappas/rotating-tree