TailRecursion

Tail Recursion

Definition A method of recursion optimization Principle When there is recursion, the recursive class remain in stack memory and it will cause overflow. The tail call elimination is created for fixing the overflow issue. If the reucursive class return everything at last, the class does need to remain in stack memory. Other Names tail call elimination tail call optimization How to Change return part of recursion to call function only.