How to tell which dynamic programming pattern a problem wants
7 min read A reference to the main dynamic programming families, what the dp array means in each, and the canonical problems that drill each one. Read article
7 min read A reference to the main dynamic programming families, what the dp array means in each, and the canonical problems that drill each one. Read article
7 min read House Robber reduces to two running numbers and a two-state machine, and that same shape solves the circular, tree, and stock-cooldown follow-ups. Read article
What's missing, wrong, or worth adding? One line helps.
Sent — thank you. We read every one.