educative.io

How to compare correctly

In binary-search solutions, I see code that compares start and end as
start < end
and somtimes
start <= end
how to decide which one to use.