I just started learning Binary search
I have understood that when we are finding some exact element we return mid
but in some more advanced questions we have to return lower bounds and upper bounds, how do i identify that? when to return what, I am getting super confused.
kindly help