I wrote an equivalent version just using nested loops - reading it might help you understand why the recursion works the way it does.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: