The following sequence is a fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21,….. Which technique can be used to get the nth fibonacci term?

Hương Trang

New member
The following sequence is a fibonacci sequence:
0, 1, 1, 2, 3, 5, 8, 13, 21,…..
Which technique can be used to get the nth fibonacci term?
A. Recursion
B. Dynamic programming
C. A single for loop
D. Recursion, Dynamic Programming, For loops
 

Tìm kiếm

Back
Top