3 ms·
Recursive might be harder to grok to someone new because of the implied stack. However, once you understand the iterative version, it's probably easier to unde
by mildbow 10y ago
Recursive might be harder to grok to someone new because of the implied stack.
However, once you understand the iterative version, it's probably easier to understand how the recursion is actually working.