Skip to content

Commit 0ae80ab

Browse files
committed
Runtime: 82 ms (Top 76.74%) | Memory: 43.8 MB (Top 83.72%)
1 parent 0262612 commit 0ae80ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/M/Maximum Binary Tree II/Maximum Binary Tree II.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 82 ms (Top 76.74%) | Memory: 43.8 MB (Top 83.72%)
12
/**
23
* @param {TreeNode} root
34
* @param {number} val
@@ -16,10 +17,10 @@ var insertIntoMaxTree = function(root, val) {
1617
if(val > root.val) {
1718
return node.left = root, node;
1819
}
19-
20+
2021
// downward derivation
2122
root.right = insertIntoMaxTree(root.right, val);
2223

2324
// root construct
2425
return root;
25-
};
26+
};

0 commit comments

Comments
 (0)