A fair decision from a biased coin
You need to settle a decision with a perfectly fair fifty-fifty chance, but the only coin available is biased: it lands heads with some probability p that is not one half, and you do not even know what p is (only that it is strictly between 0 and 1).
- How do you use this coin to make a fair decision?
- On average, how many flips does your method use, for example if p = 0.9?
Show a hint
One flip of a biased coin is unfair, but think about two flips in a row. Which two-flip outcomes are equally likely to each other, whatever p is?
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
The card after the first aceDoes a random triangle on a circle contain the centre?Ants on a triangleWhich card is bigger?The blind archer's third shotA one-in-three choice from a fair coin
All questions →