3 ms·
This TopCoder article [1] on binary search is the most comprehensive one I've read on the topic so far. It covers the discrete and continuous variants and menti
by xrisk 7y ago
This TopCoder article [1] on binary search is the most comprehensive one I've read on the topic so far. It covers the discrete and continuous variants and mentions some common pitfalls too.
[1]: https://www.topcoder.com/community/competitive-programming/tutorials/binary-search https://www.topcoder.com/community/competitive-programming/t...