Reddit Experience · Mar 2026

What's the point of dp man 😭

16 upvotes 16 replies

Interview Experience

i try writing recursive code to form a dp, IT TURN OUT TO BE GREEDY/PREFIX SUM or smth i try a top down approach for a question, IT GETS MLE. i just can't get a hang of it man no matter how much I try

Full Details

i try writing recursive code to form a dp, IT TURN OUT TO BE GREEDY/PREFIX SUM or smth i try a top down approach for a question, IT GETS MLE. i just can't get a hang of it man no matter how much I try, is there a right way to approach things? yes I'm practicing alot, it's just i don't seem to find the right way or intuition. i don't understand whether or how to go top down or bottom up, i get so confused bw them and other algos. please help ps: idk, sometimes it's like every question I see I think of dp

Free preview. Unlock all questions →

Topics

Dynamic Programming Recursion