Binomial distribution. Estimate the number of recursive calls that would be used by the code
public static double binomia1(int N, int k, double p){if ((N == 0) && (k == 0)) return 1.0;if ((N<0) || (k<0)) return 0.0;return (1 - p)*binomia1(N-1, k, p) + p*binomia1(N-1, k-1, p);}
to compute binomia1 (100, 50, 0.25). Develop a better implementation that is based on saving computed values in an array.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.