Overview
Syllabus
: Problem description
: A variation of the problem
: Thinking about simple cases
: Finding a pattern
: Relabeling the steps
: Revisiting the pattern with the new labels
: The pattern we’ve found - recap.
: The recursive relationship we’ve found
: What about when N = 0?
: Writing a naive recursive solution
: Why this solution is not efficient
: How to fix it with dynamic programming bottom-up
: The bottom-up solution in code
: How to make it more efficient in terms of space
: Solution to the variation of the problem
: The recursive relationship for this problem the variation
: A naive, INCORRECT recursive solution to this problem
: A naive, CORRECT recursive solution to this problem
: A naive, correct recursive solution in code
: A dynamic programming / bottom-up approach
: How to get daily coding problems like this one go to https://csdojo.io/daily
Taught by
CS Dojo