(node)
| 93 | |
| 94 | // get height of a node |
| 95 | const getHeight = function (node) { |
| 96 | if (node == null) { |
| 97 | return 0 |
| 98 | } |
| 99 | return node._height |
| 100 | } |
| 101 | |
| 102 | // height difference or balance factor of a node |
| 103 | const getHeightDifference = function (node) { |
no outgoing calls
no test coverage detected