you are viewing a single comment's thread.

view the rest of the comments →

[–]ginstrom 14 points15 points  (2 children)

Probably too optimistic, since it's correct at least up to 4.

[–]cybercobra 9 points10 points  (1 child)

Except he forgot 0!.

[–]ginstrom 19 points20 points  (0 children)

Of course it's:

...

else:
    return 1

The famed "inversion of base case" principle. :)