Qm

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 110\tfrac{1}{10} 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

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. 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 →