-
Notifications
You must be signed in to change notification settings - Fork 270
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
Handling fibonacci for negative numbers and 0 #42
Comments
@ashokdey I would like to work on this issue. |
Thanks @PoojaKhandhadia, I really appreciate your skills and efforts. I would also like to know whether you are interested to be a full-time maintainer of this project putting more stress on Unit Tests? Also thank you @SumeetHaryani, your PR #33 has fixed this. I am looping in @TheSTL for cross-validation before I close this. |
It should throw error if index is negative. |
@ashokdey Sounds great!! Thanks for this. I would love to take this up!!! |
Great @PoojaKhandhadia, please drop me a mail with your contact details and availability for this task here: ad@ashokdey.in 🎉 |
@PoojaKhandhadia working on it, will raise PR soon. |
Function fibonacciTabular is not handled if a negative number is provided. It returns undefined as output.
If 0 is given as index in fibonacciTabular it returns 0 instead of 1.
@ashokdey For the functions fibonacci and fibonacciMemoized if negative numbers are provided the output is coming as 1. Is it correct to handle in such a way that the output should be 1 or it should be handled that the output comes as 0?
The text was updated successfully, but these errors were encountered: