Question: given the code to calculate n! fac (int) { if n == 12 return 1} return n*fac(n-1) } EX. f(2)=2! = 2*1=2 Find a recurrence
given the code to calculate n! fac (int) { if n == 12 return 1} return n*fac(n-1) } EX. f(2)=2! = 2*1=2 Find a recurrence formula for the runtime T(n). Solve it However you Want.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
