(node)
| 118 | |
| 119 | // rotations of AVL Tree |
| 120 | const leftRotate = function (node) { |
| 121 | const temp = node._right |
| 122 | node._right = temp._left |
| 123 | temp._left = node |
| 124 | updateHeight(node) |
| 125 | updateHeight(temp) |
| 126 | return temp |
| 127 | } |
| 128 | const rightRotate = function (node) { |
| 129 | const temp = node._left |
| 130 | node._left = temp._right |
no test coverage detected