Skip to main content
Loading page…
Python Mastery
Chapter 54
Lesson 2 of 4
Recursion & DP Challenges
Contents
Notes
Tutor
Concept
Recursion and the Cost of Naivety
Loading activity…
Previous
1 / 9
Continue
Contents
Notes
Discussion
Tutor
30 min
9 activities
0 of 9 done
In this lesson
1
Recursion and the Cost of Naivety
2
Challenge 1 — Memoized Factorial and Fibonacci
3
Challenge 2 — Sum of Digits
4
Challenge 3 — Generate All Permutations
5
Challenge 4 — Coin Change (Minimum Coins)
6
Challenge 5 — Climbing Stairs
7
Challenge 6 — Longest Common Subsequence
8
DP Concepts Check
9
Gotcha: Python Recursion Limit
Objectives
Learner can implement factorial and Fibonacci with and without memoization
Learner can articulate the difference between top-down (memoization) and bottom-up (tabulation) DP
Learner can write a recursive sum-of-digits function
Learner can generate all permutations of a list recursively
Learner can solve coin-change (minimum coins) with bottom-up DP
Learner can count climbing-stairs paths with DP
Learner can compute longest common subsequence with DP
Chapter 54 · Coding Challenges, Katas & Debugging
String & Array Katas
Recursion & DP Challenges
Debugging Missions
Refactoring & Code Review
Previous: String & Array Katas
Next: Debugging Missions