Binary Search write-up
This challenge is more around general computer science knowledge. I can't remember the last time I had to implement a binary search for class, but the algorithm is fairly simple. We split our list or group in half repeatedly until we have found the answer. Importantly the group (i.e., array or list) must be sorted for this algorithm to be effective.
I went down this rabbit-hole before realizing this challenge is a guessing game where we must guess a random number between 1 - 100. Using a binary search algorithm this challenge is trivial.
Resources
Last updated