3 ms·
The main reason to use recursion is to use the stack variables, when tail call optimization is possible people usually just prefers loops.
by Jensson 5y ago
The main reason to use recursion is to use the stack variables, when tail call optimization is possible people usually just prefers loops.