Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the Fibonacci Solution with Dynamic programmng #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants