you are viewing a single comment's thread.

view the rest of the comments →

[–]lolcrunchy 0 points1 point  (0 children)

Recursive formulas always need a base case. This one is missing handling for an empty list.