Skip to content

Commit

Permalink
修改中序遍历中条件错误。
Browse files Browse the repository at this point in the history
  • Loading branch information
qinggniq committed Nov 27, 2018
1 parent ca47c8f commit e728f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ class Node(object):
#中序遍历:遍历左子树,访问当前节点,遍历右子树

def mid_travelsal(root):
if root.left is None:
if root.left is not None:
mid_travelsal(root.left)
#访问当前节点
print(root.value)
Expand Down

0 comments on commit e728f61

Please sign in to comment.