We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b198237 commit 9edaa00Copy full SHA for 9edaa00
C++/print-binary-tree.cpp
@@ -1,5 +1,5 @@
1
-// Time: O(n)
2
-// Space: O(h)
+// Time: O(h * 2^h)
+// Space: O(h * 2^h)
3
4
/**
5
* Definition for a binary tree node.
0 commit comments