Re:Understanding Recursion as an Absolute Beginner
by Merad on Thursday September 05, 2019 @02:50PM
(#20889655)
I'm doubtful that recursion would ever be more performant than iteration. Iteration with a stack gives you all the capability of recursion without the function call overhead. As others have said, the main advantage of recursion is ease of designing and understanding the solution.
[ Parent
| on HN ]
There are no comments on this comment yet.