Hello everyone,
I have been using Binary Search for a while, but it still confuses me as to when I should use <= and when I should use < and how I should be updating my low and high variables accordingly.
I am not sure if this has already been answered, I was unable to find an answer that solved my doubt regarding how to update low and high variables.
It's just something I am struggling to wrap my head around, any help regarding this would be highly appreciated. Cheers!




