Use of recursion for repetitive algorithms

--Originally published at Py(t)hon

This time we are going to learn about recursion, what is recursion? Recursion is a method where the solution to a problem is based on solving smaller instances of the same problem or in other words  is a way of programming or coding a problem, in which a function calls itself one or more times in its body.

An example is the function of the factorial:

fact-1

Click here for more examples.

Here is a video for better understanding:

#Pug#TC101#Tec#ISC#Recursion#NoMore