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 exist from (0,0) to (1,1) in a grid with no obstacles?
Consider the two possible movements: right then up, or up then right.
What is the number of paths from (0,0) to (0,0)?
Think about staying in the same spot.
How many ways can you reach (0,0) from (0,0)?
Think about the simplest path.
Dynamic programming guarantees fewer calls than memoization.
Reflect on the efficiencies of direct vs recursive strategies.
How would you compute paths in a grid of size 100x100 with random holes placed throughout?
Think about the memory storage needed for computations.
Propose a new method to slim down the computations further in this grid-path scenario.
Integrate heuristic searches that rely on grid layout.
5 more questions in this section. Enroll free to practise them all.
Enroll free