What is the mechanism behind the fibnocci codes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the mechanism behind the fibnocci codes?

8th Jun 2017, 1:46 PM
Siddharth Saraf
3 Answers
+ 4
its just like factorial but the difference is that you are adding the next number instead of multiplying them as in factorial .
8th Jun 2017, 2:48 PM
RZK 022
RZK 022 - avatar
+ 2
the first and second number of Fibonacci series are 1. and the next numbers are sum of previous two numbers So, a[n] = a[n-1] + a[n-2]
8th Jun 2017, 2:09 PM
Gaurav Garg
Gaurav Garg - avatar
+ 1
main concept is n + (n - 1).
8th Jun 2017, 2:04 PM
Anaet Hossain Rezve
Anaet Hossain Rezve - avatar