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.
How many paths are there to the point (0,0)?
Consider your starting point.
What happens to the path count if there’s a hole at (2,3)?
Think about the implications of obstacles.
What is the path count from (0,0) to (0,0)?
Think about movement options.
Paths to a point with a hole are counted as?
Remember the role of obstacles.
In a 6x6 grid with holes at (2,2) and (3,3), compute the number of paths to (5,5) through dynamic programming and illustrate your table.
Start with your base cases and fill each cell considering blockage from holes.
Construct a comprehensive table showing both memoized and dynamically programmed solutions for a 5x5 grid with four holes randomly distributed.
Use both methods to fill the same grid and compare the resulting path counts, especially noting differences in efficiency.
6 more questions in this section. Enroll free to practise them all.
Enroll free