Computer Science, Mathematics, Learning, Learning To Code, Code.
0, so fib(2) = 1 + 0 = 1 Now, we substitute values back up fib(3) = fib(2) + fib(1) = 1 + 1 = 2 fib(4) = fib(3) + fib(2) = 2 + 1 = 3 Dynamic Programming Photo by Sebastian Kanczok on Unsplash Dynamic programming is a whole new ball game, but it is essentially a form of optimized recursion. Now, I