Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does dynamic programming do?
Think about solving problems incrementally.
Define overlapping sub-problems in your own words.
Consider the Fibonacci example.
What is Dynamic Programming?
Think about how complex problems can be decomposed for easier solutions.
True or False: Dynamic Programming uses memoization to store results of sub-problems?
Remember the Fibonacci example where results were stored.
Create a dynamic programming algorithm to solve the longest common subsequence problem between two strings.
Think of tracking matches step by step and keep expressing lengths.
Devise a dynamic programming approach to count the number of ways to climb to the top of a staircase with 'n' steps when you can take either 1 or 2 steps at a time.
Start with the smallest steps and build up!
5 more questions in this section. Enroll free to practise them all.
Enroll free