Similar prob doubt in hackerblocs

question: https://hack.codingblocks.com/app/practice/2/691/problem
ans: https://ide.codingblocks.com/s/269549
complie correct but submit wrong;

@neelrai906 you have to construct BST from given array not after sorting the array.

before sort galat aa rha h output

build bst function you have written works only for sorted array, so if you have to build bst of unsorted array you have to change that function.

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.