Skip to content

Conversation

@mfullen
Copy link

@mfullen mfullen commented Mar 26, 2018

Hello,

I wanted to add an alternate solution to the Fibonacci problem because recursion in this problem when you start to choose n at higher numbers like 50, 100 or even greater becomes unstable due to recursion being very inefficient. In fact depending on your computer's memory you may very easily run into overflow issues at a much smaller number.

The dynamic programming approach removes recursion altogether and has a much faster calculation time. I included a stop watch of both methods to illustrate the difference.

I also think Dynamic Programming is relevant because it is a commonly asked interview question type.

Good job so far and good luck.

Thanks!

@geralexgr
Copy link
Owner

Thanks for your addition @mfullen it will be added soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants