2 ms·
The point of recursion is not recursion, but a better way to write code. Better can be more readable, less errors, whatever, but adding two parameters to the Fi
by tgv 6y ago
The point of recursion is not recursion, but a better way to write code. Better can be more readable, less errors, whatever, but adding two parameters to the Fibonacci function for the sake of introducing tail recursion, where even iteration is more understandable, is pointless.
- codr7 6y agoDepends, not all languages provide variables and since they're more or less equal it's a matter of preference in other cases.