All pastes #630880 Raw Edit

Mine

public text v1 · immutable
#630880 ·published 2007-07-23 15:33 UTC
rendered paste body
roblem Statement
    	A redundant storage system can survive a certain number of hard drive failures without losing any data. You are doing some analysis to determine the risk of various numbers of drives failing during one week. Your task is complicated by the fact that the drives in this system have different failure rates. You will be given a double[] containing n elements that describe the probability of each drive failing during a week. Return a double[] containing n + 1 elements, where element i is the probability that exactly i drives will fail during a week. Assume that drive failures are independent events.