Hacker News new | ask | show | jobs
by yxhuvud 2797 days ago
Did you implement the recursive or the iterative version? Perhaps there isn't any difference in practice between them in this sense, though. I mean, the amount of function calls would differ but perhaps not the comparisons.
1 comments

Tail call optimization in functional programming languages comes to mind.