Lessons
C++ · Algorithm Techniques · 46. DP on a Grid
step 1 of 6
Right or down
I walk from the top-left corner to the bottom-right. I may only step right or down.
So I reach a cell from above or from the left. Add those two. The edges have just 1 way.
Mission
Make the grid 4 by 4. How many paths now?
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
← press me!
Press RUN to see what this program does.