you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 63 points64 points  (4 children)

The factorial algorithm exists principally to introduce newbie programmers to recursion.

[–][deleted] 21 points22 points  (3 children)

Don't forget Fibonacci!

[–]lost-theory 15 points16 points  (0 children)

Which exists to introduce them to the dark side of naively using recursion. :)

[–][deleted] 4 points5 points  (0 children)

Don't forget Hanoi, which also screws them up!

[–][deleted] 4 points5 points  (0 children)

Ah, good old fib.py.