LeetCode 375: Guess Number Higher or Lower II
Problem Restatement We are playing a guessing game. A number is picked from: 1 to n Each time we guess a number x : Result Cost Guess is correct Pay 0 Guess is wrong Pay x dollars If the guess is wrong, we are told whether the hidden number is higher or lower, then we continue guessing in the remaining range. We need to return the minimum amount of money...