Twisted Tale of Binary Search

Twisted Tale of Binary Search

6 years ago
divya $Wn0qgRgXWO

The Binary Search algorithm is one of the oldest searching algorithms out there. Its a pretty simple algorithm for searching an element in a sorted list. However, there can be problems framed around binary search that twist the algorithm a bit.

Read on to find out more about the binary search algorithm and also one such twist that a recent problem on codechef.com introduced during one of its long challenges. The article is presented in the form of a story and that makes it a really fun read.

https://medium.freecodecamp.org/a-twisted-tale-of-binary-search-49f5ac01e83d