Skip to content
Get started

Finding the one defective unit

Exactly one of 10 units is defective. You test units one at a time in a uniformly random order. You stop as soon as you find the defective one, or as soon as only one untested unit remains (it must then be the defective one, so it needs no test). What is the expected number of tests?

Show hints (2)+
  1. The defective unit's position in your order is uniform on 1 to 10.
  2. Which positions cost 9 tests?

Answer

Reveal answer →

5.4 (± 0.001)

Create a free account to see the full worked solution and track your progress.

Interview format: Numerical Reasoning Tests, Trading Aptitude Tests

Related questions