Question DSA-REC-0058
MediumWhat does tail-call optimisation (in languages that support it) do?
- A.
Converts recursion into a hash map
- B.
Reuses the current stack frame for a call in tail position, so recursion uses O(1) stack
- C.
Sign up free to see the answer and a step-by-step explanation.