+ 2
How to understand recursion function easily?
not able to understand recursion chapter,when a question is asked I don't have any idea how to apply recursive method in a program.Otherwise iterations are really easier than recursion method.
3 Respuestas
+ 12
Recursion is a function that call itself until a condition is reached.
Think that you have 2 mirror and then you put one faced to the other. The first will reflect whatever is in the second and the second will do the same. So the image will reflect again and again and again but just by using these 2 mirrors.
So the same happens with recursion. You just use one function to do the same thing a lot of times by just calling itself.
Hope this example help you!! :DD