We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5813a07 commit 79c0475Copy full SHA for 79c0475
guessingGame.c
@@ -17,7 +17,7 @@
17
HOW THIS WORKS
18
Think of a number from 1 to 100, I can guess your number within logBase2(100 + 1 - 1) == 7 turns
19
20
- Is your roundUp(100 + 1 - 1)/ 2 == 50? Range 1 to 100 (100 possible guesses)
+ Is your number roundUp(100 + 1 - 1)/ 2 == 50? Range 1 to 100 (100 possible guesses)
21
No, guess a higher number newRange = 51 to 100 (50 possible guesses)
22
23
Is your number roundUp(100 + 51 - 1)/2 == 75? Range 51 to 100 (50 possible guesses)
0 commit comments