Skip to content

Instantly share code, notes, and snippets.

@spiterman
Created July 20, 2020 05:43
Show Gist options
  • Select an option

  • Save spiterman/46f1ab65c675842bdce8cafc95e34533 to your computer and use it in GitHub Desktop.

Select an option

Save spiterman/46f1ab65c675842bdce8cafc95e34533 to your computer and use it in GitHub Desktop.
function nThFibonacci(n) {
if(n <= 1) return 1
return nThFibonacci(n - 1) + nThFibonacci(n - 2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment