How a recursive function work? ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How a recursive function work? ?

plss explain with tower of hanoi problem

16th Jul 2018, 5:06 AM
Ayan Sharma
Ayan Sharma - avatar
4 Answers
+ 2
Hello, Ayan Sharma ! A function is recursive if its definition contains a call to the function itself. Recursion is the main and most effective way of organizing repetitive computations in functional programming.
16th Jul 2018, 5:17 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
Ayan Sharma, Could you attach your code here, and then people can help you.
16th Jul 2018, 5:21 AM
Alexander Sokolov
Alexander Sokolov - avatar
0
sir i can't dry run tower of hanoi problem can u explain
16th Jul 2018, 5:20 AM
Ayan Sharma
Ayan Sharma - avatar
16th Jul 2018, 5:39 AM
Ayan Sharma
Ayan Sharma - avatar