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.
1 parent b671588 commit 0eda990Copy full SHA for 0eda990
Python/validate-binary-tree-nodes.py
@@ -1,5 +1,5 @@
1
# Time: O(n)
2
-# Space: O(h)
+# Space: O(n)
3
4
class Solution(object):
5
def validateBinaryTreeNodes(self, n, leftChild, rightChild):
0 commit comments