Can someone explain how to get good at binary search? How to choose the boundary conditions.

I did around 20 binary search problems, but I still can't figure out how do I set the boundary invariants. I always get confused about this. There aren't many great resources for binary search on the internet.

Comments (4)