|
|
|
|
|
by ricardobeat
5367 days ago
|
|
I wasn't. I was just curious about the huge difference in performance. These numbers are from printing to console, no servers. def fibonacci(n):
t = [0, 1]
for i in xrange(n):
t.append(t[-1] + t[-2])
return t[-2]
print fibonacci(800)
|
|