(no title)
mqsiuser | 11 years ago
Recursion is just a tree.
Calling a function/procedure is expensive (in memory and run-time).
Create a tree (e.g. linked list), base your recursion on that!
You are not at university anymore, where you look at naive implementations for the sake of learning.
Spoiler: I (actually do) resolve (function-call) recursion to (tree-based) recursion when I feel like I want to.
Downvoters pls explain.
No comments yet.