374
-
[LeetCode] 374. Guess Number Higher or Lower카테고리 없음 2021. 10. 12. 12:19
https://leetcode.com/problems/guess-number-higher-or-lower/ Guess Number Higher or Lower - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Guess Number Higher or Lower 누구나 한번쯤은 해보았던 Up/Down 놀이이다. guess(int n) 함수를 사용하면 추측을 할 수 있는데, up이면 1, down이면 -1, 맞으면 0을 호출한다. 이를 이용해 정해진 범위(1~n)에..