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 is the total number of paths from (0,0) to (1,1) in a 2x2 grid?
Consider the different orders of movements.
If a hole exists at (1,1), how many paths are available to (2,2)?
No hint provided
How many paths are there from (0,0) to (2,2) in an unobstructed grid?
Think about the different sequences of right and down movements.
True or False: Dynamic programming requires a directed acyclic graph to visualize dependencies.
Recall how dependencies are structured.
Given a grid with dimensions 6x6 and holes at (2,3) and (4,5), calculate how many distinct paths exist from (0,0) to (5,5).
Start from (0,0) and fill row by row or column by column.
Explain under what conditions memoization is preferable to dynamic programming.
Consider the efficiency of recursive vs iterative solutions.
6 more questions in this section. Enroll free to practise them all.
Enroll free