[Video Solution] The running time T(n) of an algorithm is given as follows: T(n)=c+T(n-1), if ... | ASPIRE STUDY
The running time T(n) of an algorithm is given as follows: T(n)=c+T(n-1), if n>1 and =d if n≤1. Here c and d are constants. | Watch the step-by-step video solution for this NIMCET PYQ.