logo

Crowdly

How many times will the marked line in the following code run when the input int...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

How many times will the marked line in the following code run when the input integer is n?

def mystery(n):

if n <= 1:

return 1

else:

return mystery(n-1) + mystery(n-2) # This line

Answer in terms of n

100%
0%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!