Skip to content

Instantly share code, notes, and snippets.

@yschen25
Created April 6, 2022 23:25
function fibonacci(n) {
if (n < 2) {
return n;
}
return fibonacci(n - 1) + fibonacci(n - 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment