Skip to content

Commit d8b7f7b

Browse files
committed
Update binary-tree-paths.py
1 parent ee4abc9 commit d8b7f7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/binary-tree-paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def binaryTreePathsRecu(self, node, path, result):
2424
ans = ""
2525
for n in path:
2626
ans += str(n.val) + "->"
27-
resault.append(ans + str(node.val))
27+
result.append(ans + str(node.val))
2828

2929
if node.left:
3030
path.append(node)

0 commit comments

Comments
 (0)