Skip to content

Instantly share code, notes, and snippets.

@brettfreer
Created August 27, 2016 10:33
Show Gist options
  • Save brettfreer/7855960247d078e60d961ea6fe836ea4 to your computer and use it in GitHub Desktop.
Save brettfreer/7855960247d078e60d961ea6fe836ea4 to your computer and use it in GitHub Desktop.
Return fibonacciNumber n
def fibonacci(n):
if n < 2:
return n
return fibonacci(n-2) + fibonacci(n-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment