Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
What is the optimal cost to get to each of the cells in the second row? What about the third row?
Use dynamic programming to compute the optimal cost to get to each cell.