Solved

What Is the Running Time of a Method with the Following

Question 53

Multiple Choice

What is the running time of a method with the following recurrence relation: T( n ) = T( n − 1 ) + 1, with T( 0 ) = 1?


A) O( n )
B) O( 2n )
C) O( 1 )
D) O( n2 )

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions