CS502 · Final-term only#172
Consider the following Algorithm:
Factorial (n){
if (n=1)
return 1
else
return (n * Factorial(n-1))
}
Recurrence for the following algorithm is:
Show correct answer
Correct answer: D. ? T(n)=T(n(n-1)) +1
Check community answers against your course notes.