Quiz

In this lesson, you will be quizzed on your knowledge of recursion and the basics of dynamic programming.

We'll cover the following...

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


1 / 9

Alright! That ...