How Binary Search Makes Number Guessing Easy
Problem Statement
You are playing a game where a number is picked from 1 to n, and you have to guess the picked number. For each guess you make, you are given feedback:
If your guess is higher than the picked number, the API returns -1.
If your gue...
xauravww.hashnode.dev4 min read