Quiz
In this lesson, you will be quizzed on your knowledge of recursion and the basics of dynamic programming.
Quiz
1
def func(num):
if num <= 0:
return 0
elif num % 2 == 0:
return num + func(num - 2)
else:
return num + func(num - 1) + 1
func
function employs binary recursion
A)
True
B)
False
Question 1 of 90 attempted
Get hands-on with 1400+ tech skills courses.