Re:How the right syntax can help teach recursion
by riboflava on Thursday September 15, 2016 @01:36PM
(#12508122)
I find the pen and paper method of visualizing invaluable. Make a small sample input that hits full coverage and trace it through step by step, writing out each call point with its values. Then you see the shape of your recursion (https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.htm...) and if there's a bug it can quickly become apparent.
[ Parent
| on HN ]
There are no comments on this comment yet.