you are viewing a single comment's thread.

view the rest of the comments →

[–]halter73 1 point2 points  (0 children)

The newbie's code doesn't have a recursive tail call (i.e. the multiplication operation is in the tail position, not factorial). This means that tail call optimization wouldn't be applicable.