Skip to content

Commit 50a4abe

Browse files
authored
Update binary_tree_paths.py
1 parent 50c929d commit 50a4abe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

binary_tree_paths.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
# @param {TreeNode} root the root of the binary tree
@@ -18,4 +18,6 @@ def _binaryTreePaths(self, root, path):
1818
if root.right:
1919
self._binaryTreePaths(root.right, path)
2020
if not (root.left or root.right):
21-
self.ret.append(path)
21+
self.ret.append(path)
22+
23+
# easy: http://lintcode.com/zh-cn/problem/binary-tree-paths/

0 commit comments

Comments
 (0)