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

Add fibonnaci sequence closed form function #130

Merged
merged 3 commits into from
Sep 14, 2018

Conversation

TheKarlo95
Copy link
Contributor

Added function to find n-th fibonnaci sequence using closed form function. It is O(1) for numbers 1 to 75. If n is bigger than 75 difference in expect result and result this function gives is proportionally bigger because of rounding floating point numbers.

@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #130   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         117    118    +1     
  Lines        2283   2286    +3     
  Branches      396    396           
=====================================
+ Hits         2283   2286    +3
Impacted Files Coverage Δ
...c/algorithms/math/fibonacci/fibonacciClosedForm.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 ecc8c65...d7b6ff6. Read the comment docs.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@trekhleb trekhleb changed the base branch from master to fibonacci-closed-form September 14, 2018 15:01
@trekhleb
Copy link
Owner

Thank you for PR!

@trekhleb trekhleb merged commit a234003 into trekhleb:fibonacci-closed-form Sep 14, 2018
harshes53 pushed a commit to harshes53/javascript-algorithms that referenced this pull request Dec 6, 2018
* Add fibonnaci sequence closed form function

* Revert package-lock.json
shoredata pushed a commit to shoredata/javascript-algorithms that referenced this pull request Mar 28, 2019
* Add fibonnaci sequence closed form function

* Revert package-lock.json
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

3 participants