Dynamic programming animator: watch the table fill, then find your mistake
Free dynamic programming visualizer. Watch knapsack, LCS, edit distance, coin change and more fill their table cell by cell, then fill it yourself or write the code and see the first wrong cell and why.
Watch it fill
Twelve classic problems with any inputs. Each step lights the line of code that runs, the cells it reads in blue and the cell it writes in yellow. Turn on Predict each cell to guess before it appears.
Fill the table yourself
Type the table the way an exam asks. The animator finds the first wrong cell in the order the algorithm fills them.
Write the code
Write the algorithm in the course's pseudocode, watch it run, and compare it with the right table. With a free account, follow the first wrong cell back to the real mistake: a base case or the line of the recurrence.