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
let num = 45; function fib(n) { if (n <= 1) return 1; return fib(n - 1) + fib(n - 2); } let res = fib(num); res;
The text was updated successfully, but these errors were encountered:
Thanks for raising @caracal7
Sorry, something went wrong.
You’re welcome 😊
Looks like early returns aren't working properly
@caracal7 this has now been fixed 😄 It will be a bit slow when putting in a high number, but it won't crash anymore.
We've also added your Fibonacci to our benchmarks to see if we can improve performance over time
No branches or pull requests
The text was updated successfully, but these errors were encountered: