Skip to content

Commit 4e44dc0

Browse files
committed
fd
1 parent f4e7012 commit 4e44dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode/solution/src/CountCompleteTreeNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public int countNodes(TreeNode root) {
2626
return count;
2727
}*/
2828

29-
// 119ms,最差复杂度是O(n),最好是O(lgn)
29+
// 119ms,最差复杂度是O((lgn)^2),最好是O(lgn)
3030
public int countNodes(TreeNode root) {
3131
int left = 0, right = 0;
3232
for (TreeNode node = root; node != null; node = node.left, left++);

0 commit comments

Comments
 (0)