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

Naheed Edges Fibonacci #28

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

Naheed Edges Fibonacci #28

wants to merge 1 commit into from

Conversation

arangn
Copy link

@arangn arangn commented Nov 15, 2018

No description provided.

@arangn arangn changed the title tests pass Naheed Edges Nov 15, 2018
@arangn arangn changed the title Naheed Edges Naheed Edges Fibonacci Nov 15, 2018
@shrutivanw
Copy link

Nice work on the algorithm.

I didn't see any comments on the time and space complexity. Take some time to practice deducing it and explaining the reasoning behind your answers.

Then, as the problem statement mentions, think of whether you can optimize the space complexity further. Do you really need to maintain the fib array? Can you instead maintain only the previous two values of fibonacci numbers? Think about it some more and then tally with my solution here: https://github.com/Ada-C10/fibonacci/blob/solution/lib/fibonacci.rb

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