Skip to content

Commit 4a34462

Browse files
authoredSep 29, 2024
Fixed Formatting 0106-construct-binary-tree-from-inorder-and-postorder-traversal.js
1 parent 4367078 commit 4a34462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎javascript/0106-construct-binary-tree-from-inorder-and-postorder-traversal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var buildTree = function(inorder, postorder) {
3737
globleIdx--;
3838
const currRoot = new TreeNode(inorder[i]);
3939

40-
currRoot.right = dfs(i+1, end);
40+
currRoot.right = dfs(i + 1, end);
4141
currRoot.left = dfs(start, i - 1);
4242

4343
return currRoot;

0 commit comments

Comments
 (0)