Pergunta de entrevista da empresa Hudson River Trading

Probabilities, algorithm