What is the solution of that Algorithm ?


Please answer in details. Step by Step Please
Algorithm Mystery(A[0..n-1 ], int n)
//Input: an array A and n is the array size
//Output:
if (n == 1)
return a[0]
else
return (a[n-1] + sum_of(a,n-1))
----...

read more...

Share to Facebook Share to Twitter Stumble It Email This More...

Latest Questions

Updated