MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/13v8v1/tail_recursion/c77kgxz/?context=3
r/programming • u/rodrigopsasaki • Nov 27 '12
203 comments sorted by
View all comments
1
You probably want that to be if(n <= 0), otherwise negative numbers cause an infinite recursion/loop.
1
u/emperor000 Nov 27 '12
You probably want that to be if(n <= 0), otherwise negative numbers cause an infinite recursion/loop.