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.
You can solve this problem by simulation up to n days, to get three decimals in precision. You don't need to know about expected values for that. You just need to know what the probability of needing X repairs mean and weight it when calculating the cost.
There's many solutions here that do that and work.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 5: Poisson Distribution II
You are viewing a single comment's thread. Return to all comments →
You can solve this problem by simulation up to n days, to get three decimals in precision. You don't need to know about expected values for that. You just need to know what the probability of needing X repairs mean and weight it when calculating the cost.
There's many solutions here that do that and work.