Build BST. Code showing wrong output

My code is showing wrong output. Could you please tell me where i am going wrong?

@utkarshvashisth94
hello Utkarsh,
image

here it should be start>end.

if start==end that means we are on leaf node thats why we should not return NULL for that case.

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.