Pergunta de entrevista da empresa Microsoft

Give an algorithm to simulate a fair coin toss from a biased coin

Resposta da entrevista

Sigiloso

21 de dez. de 2009

Use Von Neumann's method Flip it twice. H & T -> H T & H -> T H & H or T & T -> repeat

1