Probability, Statistics, Distributed Systems, Software Engineering, Interview Questions.
‘p’, vary N and check when the above probability is at-least 0.9999. Since on increasing the number of servers N, the probability ‘f’ ’increases, thus we can do binary search on N to find the minimum N such that f ≥ 0.9999. def ncr(n): # Calculate nCr values using dynamoc programming cache =