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 9404cc3 commit 9ab2677Copy full SHA for 9ab2677
Python/path-sum-iv.py
@@ -1,5 +1,5 @@
1
# Time: O(n)
2
-# Space: O(w), w is the max node count of the level in the tree
+# Space: O(p), p is the number of paths
3
4
class Solution(object):
5
def pathSum(self, nums):
0 commit comments