...

/

Solution Review: nth Pre-Order

Solution Review: nth Pre-Order

Let’s go through the detailed solution review of the challenge given in the previous lesson.

Solution

We keep track of our index in a counter. Because we want to print the node that is at the nthn^​{th} ...