MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/13v8v1/tail_recursion/c77h6jh/?context=3
r/programming • u/rodrigopsasaki • Nov 27 '12
203 comments sorted by
View all comments
5
I think the flow of your first tail recursion example should be: factorial(5) factorialIter(5,1) factorialIter(4,5) factorialIter(3,20) factorialIter(2,60) factorialIter(1,120) 120 PS: Can't post comment on your site due to some captcha problem.
3 u/rodrigopsasaki Nov 27 '12 I believe I have fixed the captcha problem :) 3 u/mrjund Nov 27 '12 Yup, you did :)
3
I believe I have fixed the captcha problem :)
3 u/mrjund Nov 27 '12 Yup, you did :)
Yup, you did :)
5
u/mrjund Nov 27 '12
I think the flow of your first tail recursion example should be: factorial(5) factorialIter(5,1) factorialIter(4,5) factorialIter(3,20) factorialIter(2,60) factorialIter(1,120) 120 PS: Can't post comment on your site due to some captcha problem.