Solved

The Iterative and Recursive Algorithms Used to Compute a Factorial

Question 14

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:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents