Learn Dynamic Programming with Animations – Full Course for Beginners

From the creator

Master the art of Dynamic Programming by learning to break complex challenges into simple, reusable sub-problems. This course features step-by-step animations that bring abstract logic to life, showing you exactly how data flows through tables and recursion trees in real-time. Develop a powerful visual intuition for optimization so you can solve even the toughest algorithmic puzzles with ease. Sheldon created this course. https://algo.monster/dp ❤️ Support for this channel comes from our friends at Scrimba – the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp ⭐️ Contents ⭐️ — 0:00:00 Course Introduction and Visual Intuition — 0:00:33 Fundamentals of Dynamic Programming — 0:01:14 The Staircase Problem: Counting Paths — 0:04:13 Implementing Recursive Solutions — 0:06:26 The Inefficiency of Simple Recursion — 0:07:32 Pattern 1: Memoization (Top-Down Approach) — 0:11:39 Pattern 2: Tabulation (Bottom-Up Approach) — 0:14:09 Comparing Memoization vs. Tabulation — 0:16:34 Practice Problem: N-th Tribonacci Number — 0:20:33 Optimization: Min Cost Climbing Stairs — 0:28:56 Constant Transition Pattern and Space Optimization — 0:30:46 Practice Problem: House Robber — 0:34:08 Pattern 3: Grid Problems (2D DP) — 0:34:41 Practice Problem: Unique Paths — 0:39:54 Optimizing Space in Grid Problems — 0:42:37 Practice Problem: Unique Paths II (With Obstacles) — 0:45:19 Pattern 4: Two Sequences — 0:45:47 Practice Problem: Longest Common Subsequence — 0:57:48 Practice Problem: Edit Distance — 1:01:34 Pattern 5: Interval DP — 1:01:46 Practice Problem: Longest Palindromic Subsequence — 1:11:57 Practice Problem: Palindromic Substrings — 1:14:47 Pattern 6: Non-Constant Transition — 1:15:05 Practice Problem: Longest Increasing Subsequence — 1:23:11 Practice Problem: Partition Array for Maximum Sum — 1:27:00 Pattern 7: Knapsack-like Problems — 1:27:14 Practice Problem: Partition Equal Subset Sum — 1:38:04 Practice Problem: Coin Change — 1:41:27 Final Summary and Resources 🎉 Thanks to our Champion and Sponsor supporters: 👾 @omerhattapoglu1158 👾 @goddardtan 👾 @akihayashi6629 👾 @kikilogsin 👾 @anthonycampbell2148 👾 @tobymiller7790 👾 @rajibdassharma497 👾 @CloudVirtualizationEnthusiast 👾 @adilsoncarlosvianacarlos 👾 @martinmacchia1564 👾 @ulisesmoralez4160 👾 @_Oscar_ 👾 @jedi-or-sith2728 👾 @justinhual1290 -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news

Choose to Build with AI
Matched to AI Coding

AI Maker Residence 3

The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code. Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.

◆ Fri 09 Oct 2026 ◆ KOKO Cafe, London ◆ With Nick Sarafa
AI Maker Residence 3
Live event
AI Maker Residence 3
Fri 09 Oct 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.