Skip to content

fibonacciNth function added #36

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

Merged
merged 2 commits into from
Jun 2, 2018
Merged

Conversation

ohepworthbell
Copy link
Contributor

The fibonacci() function now returns array of the fibonacci sequence, with the function fibonacciNth() returning the value at nth-position in the fibonacci sequence.

@codecov-io
Copy link

codecov-io commented May 30, 2018

Codecov Report

Merging #36 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #36   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          81     82    +1     
  Lines        1799   1809   +10     
  Branches      318    319    +1     
=====================================
+ Hits         1799   1809   +10
Impacted Files Coverage Δ
src/algorithms/math/fibonacci/fibonacci.js 100% <100%> (ø) ⬆️
src/algorithms/math/fibonacci/fibonacciNth.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a63bc67...50fadf4. Read the comment docs.

@a-b
Copy link

a-b commented Jun 1, 2018

The bottom-up approach looks fine, it would be great to add test ensuring expected time complexity.

@trekhleb
Copy link
Owner

trekhleb commented Jun 2, 2018

@ohepworthbell thank you for cleaning the code up and for clean implementation of new function!

@trekhleb trekhleb merged commit d267d72 into trekhleb:master Jun 2, 2018
@trekhleb trekhleb mentioned this pull request Jun 2, 2018
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.

5 participants