Math Problem Statement
Problem 1. What is the time complexity of this piece of code? def factorial(n): r = 1 i = n while i > 0: r = r*i i -= 1 return r
Solution
Ask a new question for Free
By Image
Drop file here or Click Here to upload
Math Problem Analysis
Mathematical Concepts
Algorithm Analysis
Time Complexity
Formulas
-
Theorems
-
Suitable Grade Level
Advanced High School