Skip to content

Commit 79c0475

Browse files
Update guessingGame.c
1 parent 5813a07 commit 79c0475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guessingGame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
HOW THIS WORKS
1818
Think of a number from 1 to 100, I can guess your number within logBase2(100 + 1 - 1) == 7 turns
1919
20-
Is your roundUp(100 + 1 - 1)/ 2 == 50? Range 1 to 100 (100 possible guesses)
20+
Is your number roundUp(100 + 1 - 1)/ 2 == 50? Range 1 to 100 (100 possible guesses)
2121
No, guess a higher number newRange = 51 to 100 (50 possible guesses)
2222
2323
Is your number roundUp(100 + 51 - 1)/2 == 75? Range 51 to 100 (50 possible guesses)

0 commit comments

Comments
 (0)