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 4d86dca commit f8fd874Copy full SHA for f8fd874
python/112_Path_Sum.py
@@ -21,4 +21,4 @@ def hasPathSum(self, root, sum):
21
left = self.hasPathSum(root.left, sum)
22
# check right
23
right = self.hasPathSum(root.right, sum)
24
- return (left or right)
+ return (left or right) # one of them is True, return true
0 commit comments