fave77/Mathball

Optimising Fibonacci Number

Closed this issue · 4 comments

Do the checklist before filing the issue:

  • Do you have Node.js and all the relevant dev-dependencies installed?
  • Is this a bug fix?
  • Is this an enhancement?
  • Is this a feature request?
NOTE: Provide a clear and concise description of the feature that needs to be added! Or if its a bug, then provide the necessary steps to reproduce it along with screenshots.

Current solution uses brute approach to find nth fibonacci number.
This issue requires one to convert the time complexity from O(n) to O(logn) by using Matrix Exponentiation to find nth fibonacci numbers.

Links-
Fibonacci Number Matrix Exponentiation GFG
Use either Method5 or Method6 from above link

Related issues and PR-
#64
#5

Also, note that one needs to use Matrix Exponentiation library already created for Mathball under Mathball/src/matrixExponentiation

@Ameenasuhani you're assigned!

@Ameenasuhani your time's up!

Can I take this ?

@Manvityagi you're assigned