how to solve this problem using recursion?
How to solve this question using recursion?
Hello @pragyachoudhary1111,
This question would not pass all the test cases with recursion.
It will show TLE for few cases.
Dynamic Programming approach is the required to pass the rest of the test cases.
So, I would suggest you to solve this question after studying DP.
BTW, in the recursive approach you have to follow the same approach as specified in tilling problem-I.
Hope, this would help.