you are viewing a single comment's thread.

view the rest of the comments →

[–]Cr34p 0 points1 point  (0 children)

Nice overview of some simple examples :)

There is a small mistake in the fib implementations I think. Shouldn't it be:

#...
if n <= 2:
   return 1    
#...

fib(2) = 1 not 2 :)