mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 05:21:09 +00:00
Merge pull request #33 from akshaysharma096/master
edge test cases fixed for in_order
This commit is contained in:
commit
b56cb26a74
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user