Recursion problem

when ever i watch video i understand the recursive function, but when i try to write on my own , i can not be able to write recursive function. any solution ?

just keep practicing solve easy question first and then move toward harder problem , if you can’t deduce the recursive relation then feel free to refer editorial or solution , it happens with everyone, its just a matter of time you will be comfortable solving recursion based question .
don’t loose your motivation fight harder !!

this blog might be helpful :-

1 Like

thank youuuuuuuuuuuuuuuuuuuuu :wink: