Skip to content

Instantly share code, notes, and snippets.

@bee-san
Created March 29, 2019 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bee-san/cb2ddc5e6146d6c0422249319e61aa2a to your computer and use it in GitHub Desktop.
Save bee-san/cb2ddc5e6146d6c0422249319e61aa2a to your computer and use it in GitHub Desktop.
def F(n):
if n == 0 or n == 1:
return n
else:
return F(n-1)+F(n-2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment