Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

More specifically: if you don't want to recursively iterate a tree, you have to hold a list of prior nodes to return to anyway... which is no different from weaving that information into the stack. Non-recursive iteration in this case literally requires you to emulate the recursion.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: