We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa79fe commit adacf68Copy full SHA for adacf68
1 file changed
C++/construct-binary-tree-from-preorder-and-inorder-traversal.cpp
@@ -1,5 +1,5 @@
1
// Time: O(n)
2
-// Space: O(h)
+// Space: O(n)
3
4
/**
5
* Definition of TreeNode:
0 commit comments