Multiple Choice
The iterative and recursive algorithms used to compute a factorial value are O(__________) , because the number of loop repetitions or recursive calls increases linearly with n.
A) 1
B) log2 n
C) n
D) n log2n
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q15: Rather than examining the last vector element,
Q16: On average, a linear search will examine
Q17: Complete the revision to the power function
Q18: Suppose you passed 50 to the naive
Q19: We can always write an iterative solution
Q20: To complete the recursive call to gcd,
Q21: Suppose you are recursively searching an array
Q22: The altered version of print_chars_reverse defined below
Q23: To test the binary search algorithm, you
Q24: The iterative version of a function always