| 83 | |
| 84 | // creates new Node Object |
| 85 | class Node { |
| 86 | constructor(val) { |
| 87 | this._val = val |
| 88 | this._left = null |
| 89 | this._right = null |
| 90 | this._height = 1 |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // get height of a node |
| 95 | const getHeight = function (node) { |
nothing calls this directly
no outgoing calls
no test coverage detected