Showing Posts From

Dynamic programming

Dynamic Programming: Patterns & Optimization

Dynamic Programming: Patterns & Optimization

Week 26, the finale. A tour of the DP families that cover most interview questions (knapsack, subsequences, grids, intervals), plus rolling-array space optimization.

Dynamic Programming: An Intro

Dynamic Programming: An Intro

Week 16 notes: DP is just recursion that never repeats work, and it's way less scary than its reputation. Spotting a DP problem, defining a state, and going top-down or bottom-up.