Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e14e6ca

Browse files
committed
README.md modified
1 parent 906f85b commit e14e6ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎AlgorithmCode/HeightOfTree.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ public static void main(String[] args) {
5151
root.children[0].children[0] = new TreeNode(3);
5252
root.children[0].children[1] = new TreeNode(4);
5353

54-
int diameter = heightOfTree(root);
55-
System.out.println("Height of the tree is : " + diameter);
54+
int height = heightOfTree(root);
55+
System.out.println("Height of the tree is : " + height);
5656

5757
// Output:
58-
// Diameter of the tree is : 3
58+
// Height of the tree is : 3
5959
}
6060
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /