how to start dynamic programming ?

I am new to advanced topics like Dynamic programming . Please suggest from where to start to have a strong hold in DP problems . Thanks

You should have searched the forum first. There are some great answers here and I’m already trying to follow them. But anyway,


and then solve


You should give a search for this Q here as there are many valuable answers available for this auestion here.

I entered dp by learning algo and concepts from Once you know the standard algo, dp becomes all about optimisations and clever implementation. Initially it feels tough, but it becomes easier once you get into it and start having a feel of concepts. :slight_smile:

1 Like

Somebody upvote me … I don’t have enough karmas to ask questions


thanks mate

thanks mate

Voila, you’ve got your way. Try to involve yourself here.

DP is an important topic in coding competitions. No matter how many problems have you solved using DP, it can still surprise you …
for introduction , refer
then go to
and finally

… hope it helps .


@abhi_shakes, you’re welcome.

Your username is funny :wink:
Don’t take it wrong, I am just appreciating your creativity :wink: @abhi_shakes :wink:


Please guys don’t ask same question again and again. DP related questions has already been asked too many times at this site and other sites famous sites also.

So at least try to google it before questioning it here.

Somebody please upvote me as I need karmas to ask questions

sorry didnt knew that i had enough no need to upvote

guys, please upvote me. i am new here. nad not able to ask question

1 Like

Dynamic programming is really a comfortable programming from my point of view becuz lets take example of array we dont need to set no.s of indexes we only pass data in java please understand this topic very clearly. Thank u