While constructing Binary search tree from given Preorder traversal, can't we use normal method for construction of BST from set of array values instead of following the method given here. If not ,please give counter example where my approach fails. Thanks!
Asked
Active
Viewed 165 times
1 Answers
0
You can! When constructing your BST from the preorder traversal, all that matters for the algorithm is that the values themselves exist and are accessible. A set of array values should work perfectly!

John Kokolakis
- 71
- 2