Recursion


A recursion is a method of solving the problem where the solution to a problem depends on solution to seller instances of the same problem.
A recursive function is a function that calls itself during execution, this enables the function to repeat itself several times to solve a given problem.

How recursion work ?

for-loop-shineskill
ok
ok
ok
ok
ok
...
....
....