(balanceFactor)
| 114 | |
| 115 | // Helper: To check if the balanceFactor is valid |
| 116 | const isValidBalanceFactor = (balanceFactor) => |
| 117 | [0, 1, -1].includes(balanceFactor) |
| 118 | |
| 119 | // rotations of AVL Tree |
| 120 | const leftRotate = function (node) { |
no outgoing calls
no test coverage detected