I have wriiten this code… for this question…
But it is showing answer because when i building BST it is becoming skewed as the input are sorted.
How should i make this BST.
Please see this.
Not able to construct this tree
Hey @ashishnnnnn you can see this code https://ide.codingblocks.com/s/350698 , I have added few comments also for better understanding, this might help you in understanding this problem better and you can also apply it in your approach too. Hope this would help you