this actually best explanation for this questions thanks a lot and please keep posting such solutions for DP question on codeforces
@arkashvijayakumar4181 Жыл бұрын
Very clean solution and very good explanation. Thank you
@zero-w1b Жыл бұрын
During contest I was able to identify N square dp solution but couldn't think of optimizing like this. Thanks for solution and clear explanation :)
@divyanshtyagi4312 Жыл бұрын
Glad that it helped!
@puitar927 Жыл бұрын
thank you for your clearly solution!
@apoorvajain9137 Жыл бұрын
Thank you for the amazing solution. I understood your approach but I have a doubt, I solved it using memorization rather than tabulation(as you did), but it gave TLE. Could you help and tell why so?
@divyanshtyagi4312 Жыл бұрын
I could try taking a looking if you can share your submission id (yt doesnt allow to share links).
@justchill8941 Жыл бұрын
Can you tell me from where I can learn dp and pratice it.