We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aea76eb + 8f43b64 commit 81054c5Copy full SHA for 81054c5
βCodingBlocks Training/Day21/diameterOfTree.javaβ
@@ -2,6 +2,8 @@
2
3
import Lecture21.binaryTree.Node;
4
5
+// time complexity: O(N^2)
6
+
7
public class diameterOfTree {
8
9
public static void main(String[] args) {
@@ -64,4 +66,4 @@ public static int findHeight(Node node) {
64
66
65
67
-----------------------
68
diameter of tree is: 5
-*/
69
+*/
0 commit comments