LeetCode

Guess Number Higher or Lower

Click here for an explanation.