The given integer array is not sorted to make BST first i have sort then construct BST but there are multiple possibility of BST in this sample case and my output doesn’t match yours so how to resolve this.
Multiple ways to create BST
Hey @sahil.gupta680,
You need to insert the values in the BST one by one.
In that way the expected BST will match with the expected one.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.