Top
/
Algorithms
/
Tail recursion
/
Answer-tail-1
Answer to Question tail-1
A tail-recursive function definition can be converted to a loop by the compiler. That makes it run much more efficiently. It does not need to keep making new frames for recursive calls.