Hey Guys!! I had implemented this binary search code two months ago but had some problems. I also checked it now but I am still facing problem in binary search code. The problem is that the co...
u found mid by wrong way. high/2 could be any no from 0 to high.
but low+high/2 gives u average or middle no of that range.
hey i got it.!!
only one correction==>> int x = (low+high)/2; in void bs. thats it.!! enjoy