Dynamic Programming by Hand: Overlapping Subproblems, Memo Tables, Coin Change, Knapsack, Longest Common Subsequence & Grid Paths
Fill the tables that dynamic programming is built on. You will count how often a naive recursion repeats itself, build memo tables bottom-up, solve stair-climbing and coin-change problems, fill a 0/1 knapsack grid, trace a longest common subsequence back through its table, count grid paths around obstacles and compare the work against brute force, with every cell checked as you go.
- One-time payment
- 14-day money-back guarantee
- Secure checkout with Stripe
What you'll build
What you will be able to do
Each lab ends with a concrete result that you build yourself and the checker confirms, cell by cell.
- Fill a toy recursion f(n) = f(n−1) + f(n−2), count how many calls the naive version makes for every n, compare that with the n + 1 entries of a memo table and with the bound 2^n, and work out the saving factor.
- Build two bottom-up tables for climbing 12 stairs, one with 1- or 2-steps and one that also allows 3-steps, compare the two counts and count the ways that must stop on a landing.
- Check a half-filled fewest-tokens table with three “via” columns built from XLOOKUP, extend it to amounts 13–15 with MIN, and show that the greedy rule pays amount 10 with more tokens than the table.
- Fill a ways table token by token for amounts 0–12, check one cell against a hand list, then count ordered sequences in a second row and see how much larger that count is.
- Fill a 5-item × 11-capacity knapsack grid with MAX(skip, take), read off the best value for a 10 kg hamper and trace back which items were packed.
- Split two toy words into letters with MID, fill the longest-common-subsequence grid, read the LCS length, turn it into a similarity score and trace the common letters back.
- Count a robot’s right/down paths around blocked squares, find the cheapest route through a cost grid, measure the saving against the edge route and read which way the best path arrives.
- Fill a longest-increasing-subsequence table with MAXIFS, read the longest rising run, and compare the steps of brute force (2^n) with DP tables (n² and n·(W + 1)) in a table and a chart.
About this course
Dynamic programming clicks once you watch a table fill itself. This course lets you do exactly that, cell by cell. You first count how often a naive recursion solves the same subproblem again and see how a memo table cuts the work. Stair-climbing puzzles introduce bottom-up tables, and two coin-change labs find the fewest tokens for an amount, expose where the greedy choice breaks and count combinations where loop order changes the answer. You then fill a 0/1 knapsack grid and trace back the chosen items, recover a longest common subsequence, route paths around blocked and costly squares and close with the longest increasing subsequence against brute force. Ideal for coding interview prep and computer science students.
Curriculum
Course content
8 lessons · 8 labs · 2.2 h · final exam
- Unlocked when you buy the course
- Unlocked when you buy the course
- Unlocked when you buy the course
- Unlocked when you buy the course
- Unlocked when you buy the course
- Unlocked when you buy the course
- Unlocked when you buy the course
- Unlocked when you buy the course
- Final exam
Certificate
Finish with a certificate you can verify
Complete every lesson and pass the final exam to receive a certificate of completion for this course, with a unique credential ID and a public verification page.
- Names the course, your score and the date of issue
- A verification link for your CV or LinkedIn profile
- 12 questions, 75% to pass, unlimited retries.
A Tutorvo certificate confirms that you completed a course. It is not an official or professional qualification.
Before you buy
Questions about this course
Is this a subscription?
No. You pay $9.99 once for this course. There is no subscription and nothing renews automatically. Prices are in US dollars; taxes may be added where required.
What exactly do I get?
All lessons and labs of this course, the final exam and the certificate, including later updates to the course, for as long as Tutorvo offers it. Access is personal and tied to your account.
Can I get a refund?
Yes. If you are not satisfied, email hello@tutorvo.com within 14 days of buying and we refund the course in full via Stripe. The guarantee does not apply once a certificate for the course has been issued to you, or where there are signs of abuse.
When can I start?
Right after payment. Access starts immediately at your request; for consumers in the EU/EEA the statutory right of withdrawal therefore ends once access has begun, while our 14-day money-back guarantee applies regardless.
Do I need Excel or other software?
No. The labs run in a spreadsheet inside your browser on a laptop, tablet or phone. Function names and syntax follow Excel.
Is the certificate an official qualification?
No. It confirms that you completed all lessons of the course and passed its final exam. It is not an official, state-recognised or professional qualification. The name is taken from your profile when the certificate is issued.
Full details are in our Terms · hello@tutorvo.com
