We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
player 2 choose maximum probablity, which is dependent on player 1 turns.
if player 2 needs 3 points , then player 1 has probablity of 1/8. any probablity better than 1/8 would be player 2 choice.
let's say it is 2 coins. each turn there is 1/4 chance of getting the 2 points.
for 3 rounds, that means (1/4 * 3/4*1/4)*3 probablity, better than 1/8.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #232: The Race
You are viewing a single comment's thread. Return to all comments →
player 2 choose maximum probablity, which is dependent on player 1 turns. if player 2 needs 3 points , then player 1 has probablity of 1/8. any probablity better than 1/8 would be player 2 choice.
let's say it is 2 coins. each turn there is 1/4 chance of getting the 2 points. for 3 rounds, that means (1/4 * 3/4*1/4)*3 probablity, better than 1/8.