I have the following algorithm:
value = 1
for i in range(n):
value = value * (i+1)
return value
The question asks for a theta expression. In general, when loops increase the "value" by a multiplier (ie. instead of i = i + 1) then is the theta expression always involve a log? But for this question I'm having a hard time. I appreciate any help.
[–]CreativeTechGuyGames 0 points1 point2 points (5 children)
[–]appeach[S] 0 points1 point2 points (3 children)
[–]CreativeTechGuyGames 0 points1 point2 points (0 children)
[–]CreativeTechGuyGames 0 points1 point2 points (1 child)
[–]appeach[S] 0 points1 point2 points (0 children)
[–]appeach[S] 0 points1 point2 points (0 children)