Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 27d854f

Browse files
authoredOct 14, 2020
Update binary_tree_traversals.py
1 parent 85738c3 commit 27d854f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎data_structures/binary_tree/binary_tree_traversals.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,7 @@ def main(): # Main function for testing.
152152
"""
153153
Create binary tree.
154154
"""
155-
root = Node(1)
156-
root.left = Node(2)
157-
root.right = Node(3)
158-
root.left.left = Node(4)
159-
root.left.right = Node(5)
155+
make_tree()
160156

161157
"""
162158
All Traversals of the binary are as follows:

0 commit comments

Comments
 (0)
Please sign in to comment.