Given a grid of non-negative integers, find a path from top-left to bottom-right (moving only right or down) minimizing the sum of visited values. Return that sum.
Input
r cOutput: the minimum path sum.
3 3 1 3 1 1 5 1 4 2 1
7
1→3→1→1→1.
2 3 1 2 3 4 5 6
12
Run your code against the sample tests, or Submit to run the full suite.