Skip to content

Commit a50f119

Browse files
authored
Update 437.path-sum-iii.md
1 parent d26fe03 commit a50f119

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

problems/437.path-sum-iii.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ class Solution:
195195

196196
def pathSum(self, root: Optional[TreeNode], targetSum: int) -> int:
197197
hashmap=collections.defaultdict(lambda:0)
198-
acc=0
199-
return self.helper(root,acc,targetSum,hashmap)
198+
return self.helper(root,0,targetSum,hashmap)
200199
```
201200

202201
**复杂度分析**

0 commit comments

Comments
 (0)