Recently i am solving binary search problems.
I am facing issue when to use conditions like
start = mid - 1 and start = mid
or
end = mid - 1 and end = midbecause i usually solve with normal mid + 1 condition. but when i see top voted solution people use different condition .