(root)
| 14 | }; |
| 15 | |
| 16 | const isChildBalanced = (root) => { |
| 17 | const left = isBalanced(root.left); |
| 18 | const right = isBalanced(root.right); |
| 19 | |
| 20 | return left && right; |
| 21 | }; |
| 22 | |
| 23 | const isAcceptableHeight = (root) => { |
| 24 | const left = getHeight(root.left); |
no test coverage detected