Software Development

Explain recursion

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Recursion - process (or strategy), when function calls itself. It has recursive case and exit case. In recursive case we call function again, in exit case we finish function without calling it again. If we don't have exit case - function will work infinite, until memory overload or call stack limit