Poisoned wine and ten rats
product-puzzle case · difficulty 4/5 · 15 minutes · other
Prompt
You have 1,000 bottles of wine and exactly one of them is poisoned. You have 10 rats. The poison kills a rat exactly 24 hours after it drinks, and you have just 24 hours to find the poisoned bottle. How do you find it?
Context
A classic interview puzzle. Core idea: Binary representation. 2^10 = 1024. Assign each bottle a binary string. Talk through your reasoning; the interviewer cares as much about structure as about the answer.
Clarifying questions
- Can rats drink multiple bottles?
- Yes. A rat can taste any number of bottles, and you read the result once, at 24 hours. Any mixture is fine.
Recommendation
**Answer:** 10 rats are enough: label the bottles in binary and let each rat represent one digit. The pattern of dead rats spells out the poisoned bottle's number. **Why:** Each rat answers one yes-or-no question, and binary labelling makes the ten answers pinpoint one of 1,024 possibilities.
Risks
- Splitting the bottles into 10 groups of 100, one per rat, which finds only the group
- Letting each rat drink from only one bottle
Next steps
- Solve the two-round version with 7 rats
- Find how many rats are needed for 10,000 bottles