Skip to content

Instantly share code, notes, and snippets.

@eduardodx
Created July 26, 2011 04:10
Show Gist options
  • Save eduardodx/1105954 to your computer and use it in GitHub Desktop.
Save eduardodx/1105954 to your computer and use it in GitHub Desktop.
Fibonacci Sequence
function fibonacci(n) {
if( n == 0 || n == 1 ){
return n;
} else {
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