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
- Write the three orders Warm-up
- Complete the in-order traversal Warm-up
- Pre-order traversal Standard
- Post-order traversal Standard
- In-order iteratively Standard
- Fix the post-order traversal Standard
- Build a tree from pre-order and in-order Challenge