Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
How many ways can you reach (1,1) from (0,0)?
Think about the paths you can take.
If (2,2) has a hole, how many paths lead to it?
What happens if a hole blocks the way?
How many paths exist to (0, 0)?
Consider the base case.
True or False: Dynamic programming always yields fewer calculations compared to memoization.
Think about how each technique processes subproblems.
Given a 5x5 grid with holes at (1,2), (2,2), and (3,3), calculate the total unique paths from (0,0) to (4,4).
Construct a dynamic programming table or visualize the grid.
Design a function to compute paths in an arbitrary sized grid with variable hole placements. How does the algorithm shift with each new hole introduced?
Consider how the grid values propagate.
7 more questions in this section. Enroll free to practise them all.
Enroll free