Expected guesses to hit a secret digit
A secret single digit from 0 to 9 is fixed. You guess digits at random, each guess correct with probability independently, stopping when you guess it right.
What is the expected number of guesses until you are correct?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Expected rolls until the first sixAverage flips to see the first headExpected items until the first defective oneExpected attempts until the first made shotFirst to roll a six in an alternating duel
All questions →