Incorrect input?


#1

[ 20, 17, 10, 13, 18, 2, 7, 6, 7, 9 ]
how can this preorder represent a bst?


#2

Yes me too facing the same problem


#3

How can BST have duplicate elements ? Input seems to be wrong.