Jump to content

Tree traversal: Difference between revisions

m
fix markup
m (syntax highlighting fixup automation)
m (fix markup)
Line 3,114:
</syntaxhighlight>
output
<pre>
<syntaxhighlight>
> coffee tree_traversal.coffee
preorder 1 2 4 7 5 3 6 8 9
Line 3,120:
postorder 7 4 5 2 8 9 6 3 1
levelorder 1 2 3 4 5 6 7 8 9
</pre>
</syntaxhighlight>
 
=={{header|Common Lisp}}==
Line 4,828:
=={{header|GFA Basic}}==
 
<syntaxhighlight lang="basic">
maxnodes%=100 ! set a limit to size of tree
content%=0 ! index of content field
10,339

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.