Skip to content

edge test cases fixed for in_order #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
edge test cases fixed
  • Loading branch information
akshaysharma096 committed Sep 26, 2016
commit ada433b4524596d17de1bfac1d8e63dcc24a45fc
4 changes: 2 additions & 2 deletions traverals/binary_tree_traversals.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def pre_order(node):
def in_order(node):
if not node:
return
pre_order(node.left)
in_order(node.left)
print(node.data, end=" ")
pre_order(node.right)
in_order(node.right)


def post_order(node):
Expand Down