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.
Im so close. How does test case #2 come out to 50% chance? there are zero tunnels. My logic is so close, but I would think the below test case would be .25 * .25 * .50 = 0.325 to reach the exit. What am I assuming?
Frog in Maze
You are viewing a single comment's thread. Return to all comments →
Im so close. How does test case #2 come out to 50% chance? there are zero tunnels. My logic is so close, but I would think the below test case would be .25 * .25 * .50 = 0.325 to reach the exit. What am I assuming?
*- Input (stdin) *- 3 7 0 *- ##OOO## - %OOAOO *- ##OOO##
Expected Output 0.5000000000