Hello, here is my code. I am now stuck and unable to find what should I do in my code ? Can you please tell me what should I do now ?
Doubt in my code
Itβs good that you tried , now watch this video
it will be easy for you to understand .
1 Like
Thank you for your appreciation
.
ok
Is it necessary to know about DP before writing its code? Because everywhere only DP is being used.
First try to do it with recursion for short test cases. Understand the calls, then see dp approach. As this question is dedicated for dp , you should know about dp. If you are not familiar with dp, then i would recommend you first to do Dp section of your course, then do this question.
1 Like
Ok I will try it after completing DP.