I was going through with a lot of articles on this topic and found out there are 4 methods that can be used to print Fibonacci Series,
1. Using For Loop
2. Using While Loop
3. Using Recursion
4. Recursion with Memoization
Now the question is, which is the one most used and why? Should I use all of them or does it depend on the problem?
My All-Time Fav Resources:
1. WikiPedia
2. Scaler Topics
Thanks!
1. Using For Loop
2. Using While Loop
3. Using Recursion
4. Recursion with Memoization
Now the question is, which is the one most used and why? Should I use all of them or does it depend on the problem?
My All-Time Fav Resources:
1. WikiPedia
2. Scaler Topics
Thanks!