Why sorting the input array gives wrong result in building the balanceed bst?

in problem building bst, when is used sorted array it fails all the test cases. but with sorting it works fine but this is happening while there should be sorting for balanced bst.?

Hello @kkunalguptaaa in build bst question the array given to you is completely sorted.
it is given in the question it is just youbhave to start forming the tree form the mid point.

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.