this the code only getting one test case right
Tilling problem 2
@WARHEAD hey neerav try this question with the dp approach this will help you to pass the evaluation of this problem.
i may but i am not well versed with DP right now
helllllllllllooooooooooooo
tell me something without DP something to do with recursion
Hello @WARHEAD,
I would suggest you to solve this problem after completing the DP part of your course.
DP will use the recursive approach but with memorization which will reduce the time complexity of your code.
Only recursive approach will not work here due to the constraints mentioned in the question.
You are required to study DP first to solve it.
Hope, it would help.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.