Inorder binary non-sorted tree traversal

时间:2017-12-18 05:34:13

标签: data-structures binary-tree binary-search-tree

Does inorder tree traversal on a binary integer non-sorted tree produce a sorted array of integers?

I know that if it's a true binary search tree, the result is a sorted array.

For example, would this produce a sorted array:

6
 1
  3
4   5
 22

0 个答案:

没有答案