ended3월 22일· 4 sources
Guess the Number Higher or Lower
숫자 맞추기: 더 높은지 낮은지
Why it matters
The article explains solving the 'Guess the Number' problem using binary search instead of linear search. A guessNumber function narrows the search range by halving it each step based on feedback from a guess() helper function, achieving logarithmic time complexity.
4
Sources
+0
24h
—
Growth
176d
Active
apibinary searchguess apiguess gameguess numberguessing gameguessnumberleetcodepythonsearch algorithmtime complexity