3 ms·
you know that you can make any stack-recursive routines use their own stack (dynamically allocated), right? I would have started there...
by dekhn 9y ago
you know that you can make any stack-recursive routines use their own stack (dynamically allocated), right? I would have started there...
- newusertoday 9y agoyes, i do :) that still did not solved the issue as before the intermediate stack could unwind it was already going out of the memory budget.
- nsnick 9y agoYou can also do DFS without using the stack.