[LeetCode] 374. Guess Number Higher or Lower

1 · Rain Hu · Nov. 17, 2022, 1:34 p.m.
Summary
374. Guess Number Higher or Lower Hardness: \(\color{green}\textsf{Easy}\) Ralated Topics: Binary Search、Interactive 一、題目 We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wrong, I will tell you whether the number I picked is higher or lower than your guess. You call a pre-defined API int guess(int num), which returns three possible results:...