RosettaCodeData/Task/Tree-traversal/Mathematica/tree-traversal-2.math

5 lines
146 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
preorder[1[2[4[7], 5], 3[6[8, 9]]]]
inorder[1[2[4[7], 5], 3[6[8, 9]]]]
postorder[1[2[4[7], 5], 3[6[8, 9]]]]
levelorder[1[2[4[7], 5], 3[6[8, 9]]]]