Hello Fellow leetcode community,
This might be a silly question to ask but I have done bunch of binary Search question and always have a confustion in iterative approach when to put low < high and when to put low<=high, I always try to interchange if the answer doesn't pass and make it work most of the time. I know this is not the right way to approach the problem But would like to learn from other people experience how do they think about it while approaching the binary search problems.
If anyone here can help me understand this particular understanding and clear my thought on it than it will be great. sorry for a silly quesstion!
Thanks in advance.