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 ee54048 commit 252acb3Copy full SHA for 252acb3
1 file changed
Python/path-sum-iv.py
@@ -28,8 +28,7 @@ def isParent(self, other):
28
child = Node(num)
29
while not parent.isParent(child):
30
result += parent.val if parent.leaf else 0
31
- parent = q[0]
32
- q.popleft()
+ parent = q.popleft()
33
parent.leaf = False
34
child.val += parent.val
35
q.append(child)
0 commit comments