3 ms·
Thanks! If I understand correctly, you would use that method, while substituting tail recursion in place of the look. However, I feel there is a lot of magic in
by qsantos 3y ago
Thanks! If I understand correctly, you would use that method, while substituting tail recursion in place of the look. However, I feel there is a lot of magic in https://gist.github.com/tmoertel/5798134#file-gistfile1-py-L83-L86 https://gist.github.com/tmoertel/5798134#file-gistfile1-py-L....
- tmoertel 3y agoYeah, deducing the incremental computation to work backwards can take some practice. I take completely different approach to explaining how to do it in https://blog.moertel.com/posts/2013-05-14-recursive-to-iterative-2.html https://blog.moertel.com/posts/2013-05-14-recursive-to-itera....