Looks like in left node data is not getting stored

Plz look at the code at tell .

Hey @udipt
you have an extra semicolon after the if condition

if( in[i] == data );

in this loop:

for(int i=ilo;i<=ihi;i++){
	if(in[i]==data);
    {
		idx=i;
		break;
	}
}

remove that .
if this solves your doubt please mark it as resolved :slight_smile: