Skip to content

Instantly share code, notes, and snippets.

@PedroEscudero
Created February 19, 2020 21:09
Show Gist options
  • Save PedroEscudero/cd41daa2d25c643b2a01876a8903e6e8 to your computer and use it in GitHub Desktop.
Save PedroEscudero/cd41daa2d25c643b2a01876a8903e6e8 to your computer and use it in GitHub Desktop.
import time
def Fibonacci(n):
if n<2:
return 1
else:
return Fibonacci(n-1)+Fibonacci(n-2)
start = time.time()
Fibonacci(22)
print(time.time() - start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment