+ 3

Recurrsion

guys I can't understand the concept of recursion algorithm...plz help me!!!

18th Feb 2018, 3:17 AM
dhanasekar k
dhanasekar k - avatar
4 Answers
+ 2
tq
18th Feb 2018, 3:24 AM
dhanasekar k
dhanasekar k - avatar
- 1
Don’t have an answer but cute dog!
18th Feb 2018, 3:18 AM
Jax
Jax - avatar
- 1
usually a recursion function Has a condition Statement, If that is true, recursion is finished. while it's Not true, the recursion is working, this means the function calls itself. int recursion(int a, int b) If (a==0): // recursion is finished return a; else: // recursion going on return recursion(a-1,b); //calling itself with slightest //modified Parameter, making Sure that 'a' IS 0 eventually, //and recursion stops
18th Feb 2018, 4:53 PM
Chiliz