AlgoFrames

In-order of a search tree

Warm-up · Multiple choice · about 3 min

This binary search tree is traversed in-order. Which sequence does the traversal visit?

Example 1

Input:

[[4,2,6,1,3,5,7]]

Output:

1 2 3 4 5 6 7

Learn the idea first: Pre-order, in-order, post-order, a visual lesson.

More Pre-order, in-order, post-order problems