3 ms·
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
by yxhuvud 8y 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.
- fizwhiz 8y agoTail call optimization in functional programming languages comes to mind.