We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
javascript-algorithms/src/algorithms/math/fibonacci/fibonacci.js
Line 13 in dc1047d
This condition is redundant, the while condition covers the case where n equals 1.
n
1
p.s- I will exploit this opportunity to say thank you for this repository.
The text was updated successfully, but these errors were encountered:
Actually, if u want to be bolt prof u better check n for being greater than or equal to 1.
Sorry, something went wrong.
I created a PR that removes that condition: #400
No branches or pull requests
javascript-algorithms/src/algorithms/math/fibonacci/fibonacci.js
Line 13 in dc1047d
This condition is redundant, the while condition covers the case where
n
equals1
.p.s- I will exploit this opportunity to say thank you for this repository.
The text was updated successfully, but these errors were encountered: