Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
How can you calculate the number of increasing paths that start from a cell (i, j)? Think about dynamic programming.
Define f(i, j) as the number of increasing paths starting from cell (i, j). Try to find how f(i, j) is related to each of f(i, j+1), f(i, j-1), f(i+1, j) and f(i-1, j).