Skip to content

Instantly share code, notes, and snippets.

@nwiizo
Created September 4, 2016 19:09
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 nwiizo/19dcc112f2af43107fc4983096a606e6 to your computer and use it in GitHub Desktop.
Save nwiizo/19dcc112f2af43107fc4983096a606e6 to your computer and use it in GitHub Desktop.
cdef double fib(n) except? -2:
if n < 2: return 1
return fib(n - 1) + fib(n - 2)
print(fib(40))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment