Question

Using a bottom-up dynamic programming approach to calculate the 6th Fibonacci number (F(0)=0, F(1)=1), what are the values stored in the DP table F at indices 0, 1, 2, 3, 4, 5, 6?

A [0, 1, 1, 2, 3, 5, 8]
B [1, 1, 2, 3, 5, 8, 13]
C [0, 1, 2, 3, 4, 5, 6]
D [0, 1, 1, 2, 4, 8, 16]
E [0, 1, 1, 3, 5, 8, 13]
Practice Next

Hey! Ask a query