MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / isChildBalanced

Function isChildBalanced

javascript/0110-balanced-binary-tree.js:16–21  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

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

Callers 1

isBalancedFunction · 0.85

Calls 1

isBalancedFunction · 0.70

Tested by

no test coverage detected