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

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)