I am having a hard time with recursion. After trying a lot I could finally draw a recursion tree but now I am unable to implement the idea behind the tree into code, it simply gives weird answers. I just don’t get it. Can anyone suggest how should one proceed when implementing recursive solutions? And any useful resources to learn recursion (apart from the Fibonacci and factorial things)?
hey @utkarsh1729 i would suggest you to try more and more problem using recursion
from geeksforgeeks .This might help you
I recently found an article which helps me to gain confidence while solving recursion problems. Here is link .