Skip to content

Commit 9edaa00

Browse files
authored
Update print-binary-tree.cpp
1 parent b198237 commit 9edaa00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/print-binary-tree.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Time: O(n)
2-
// Space: O(h)
1+
// Time: O(h * 2^h)
2+
// Space: O(h * 2^h)
33

44
/**
55
* Definition for a binary tree node.

0 commit comments

Comments
 (0)