Guess The Number Game. Binary Search vs. Random Guesses.
This is the first post of its kind on a computer science algorithm. For this example, we will consider a simple game and then see how the binary search algorithm works with it. Let’s consider the “Guess the Number Game” first. A random number between 1 and 100 (not inclusive) will be chosen. The player […]