What beginners often forget is that there is an alternative to recursion. You can just use a Stack structure. Push function calls to a Stack yourself and start popping them out when you are ready to traverse the calls back.
P
121
Programming
Notes, ideas and advises related to programming collected from my readings for blog posts, articles and books