Lessons
C++ · Algorithm Techniques · 44. Dynamic Programming

step 1 of 6

I keep repeating myself

Fibonacci: each number is the two before it added. fib(10) asks fib(9) and fib(8)… and they ask again.

calls counts how often I run. Guess first!

Mission

Print calls on a second line, after the answer.

PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
← press me!
readyscreen

Press RUN to see what this program does.

Do the mission and Next turns green.

Dynamic Programming