In-Order Traversal
In this lesson, we will cover In-Order Traversal and implement it in C++.
We'll cover the following...
Introduction #
In in-order traversal, the elements are traversed in “left-root-right” order, so they are traversed in order. In other words, elements are printed in sorted ascending order with this traversal. We first visit the left child, then the root/parent node, and then the right child. Here is a high-level description of the in-order traversal algorithm,
-
Traverse the left sub-tree of the
current node
recursively by calling theinOrderPrint()
...
Access this course and 1400+ top-rated courses and projects.