Tree traversal: Difference between revisions

Content deleted Content added
Beryllium (talk | contribs)
Beryllium (talk | contribs)
Line 35:
<tr><td>[[Image:binary_tree.png|A simple example binary tree]]</td>
<td>In this binary tree,
* Preorder (LRNNLR) traversal yields: 2, 7, 2, 6, 5, 11, 5, 9, 4
* Postorder (NLRLRN) traversal yields: 2, 5, 11, 6, 7, 4, 9, 5, 2
* In-order (LNR) traversal yields: 2, 7, 5, 6, 11, 2, 5, 4, 9
</td></tr>