Hey folks! Buddy of mine recently asked me how do I write binary search, so I spent my Saturday (not like I was going somewhere, got flu anyway) on trying to visualise different variants of the algorithm.
Please let me know if you have other variants in mind, or if I missed smth here. Cheers!
Note: not mobile friendly.