Sir has written in this wrong way
It must be dp[n]=2*dp[n-1]+dp[n-k-1]
Sir has written in this wrong way
why??
it is correct as explained in video
dp[n]=2*dp[n-1]-dp[n-k-1]
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.