Tree traversal: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
m syntax highlighting fixup automation
Thundergnat (talk | contribs)
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