recursive funcs trigger error
Opened this issue · 0 comments
srgraham commented
factorial = (n) ->
if n < 0
return 0
if n is 0 or n is 1
return 1
return n * factorial(n - 1)
this code thinks factorial() is being called multiple times illegally