Problems Involving Grids - 2
Learn to use medium to difficult grid-based problems with dynamic programming.
We'll cover the following...
Problem statement
The problem in this lesson tries to solve the following type of question:
Finding the number of ways to reach from a starting position to an ending position when traveling in specified directions only.
The problem statement is:
Given a 2-D matrix with M
rows and N
columns, find the number of ways to reach the cell with coordinates (i, j) from the starting cell (0, 0) under the condition that you can only travel one step right or one step down.
This ...