We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5060a3 commit d8f2741Copy full SHA for d8f2741
contents/tree_traversal/code/julia/Tree.jl
@@ -86,11 +86,14 @@ end
86
function main()
87
88
println("Creating Tree")
89
- root = create_tree(2,3)
+ root = create_tree(2, 3)
90
91
println("Using recursive DFS:")
92
DFS_recursive(root);
93
94
+ println("Using recursive DFS with post-order traversal:")
95
+ DFS_recursive_postorder(root);
96
+
97
println("Using stack-based DFS:")
98
DFS_stack(root);
99
@@ -100,7 +103,7 @@ function main()
100
103
println("Creating binary tree to test in-order traversal.")
101
104
root_binary = create_tree(3,2)
102
105
println("Using In-order DFS:")
- DFS_recursive_inorder_btree(root_binary)
106
+ DFS_recursive_inorder_btree(root_binary)
107
end
108
109
main()
0 commit comments