4 Commits

Author SHA1 Message Date
8bf29fe17c merge: Optimize the space complexity of the fibonacci algo (#899)
* docs: update js doc

* feat: add number type validation condition

* pref: Optimize space complexity

remove the Array from the algo and used two flag varible to calculate last two numbers & optimize the sapce complexity O(n) to O(1)

* test: add test case for invalid types
2022-02-22 16:20:46 +05:30
93e57b0de5 merge: Add FibonacciNumber.js test case and update the decription of function. (#840) 2021-11-20 16:21:25 +05:30
29d2a84090 Dynamic-Programming : remove live code & console.log, leave examples as comments. 2021-10-10 17:00:21 +02:00
d87233cd1e Create FibonacciNumber.js (#378)
* Create FibonacciNumber.js

* Update FibonacciNumber.js

Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-10-05 23:43:03 +05:30