Skip to content

Commit d9c10f6

Browse files
committed
Create README - LeetHub
1 parent a8ec80d commit d9c10f6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

0064-minimum-path-sum/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<h2><a href="https://leetcode.com/problems/minimum-path-sum/">64. Minimum Path Sum</a></h2><h3>Medium</h3><hr><div><p>Given a <code>m x n</code> <code>grid</code> filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path.</p>
2+
3+
<p><strong>Note:</strong> You can only move either down or right at any point in time.</p>
4+
5+
<p>&nbsp;</p>
6+
<p><strong class="example">Example 1:</strong></p>
7+
<img alt="" src="https://assets.leetcode.com/uploads/2020/11/05/minpath.jpg" style="width: 242px; height: 242px;">
8+
<pre><strong>Input:</strong> grid = [[1,3,1],[1,5,1],[4,2,1]]
9+
<strong>Output:</strong> 7
10+
<strong>Explanation:</strong> Because the path 1 → 3 → 1 → 1 → 1 minimizes the sum.
11+
</pre>
12+
13+
<p><strong class="example">Example 2:</strong></p>
14+
15+
<pre><strong>Input:</strong> grid = [[1,2,3],[4,5,6]]
16+
<strong>Output:</strong> 12
17+
</pre>
18+
19+
<p>&nbsp;</p>
20+
<p><strong>Constraints:</strong></p>
21+
22+
<ul>
23+
<li><code>m == grid.length</code></li>
24+
<li><code>n == grid[i].length</code></li>
25+
<li><code>1 &lt;= m, n &lt;= 200</code></li>
26+
<li><code>0 &lt;= grid[i][j] &lt;= 100</code></li>
27+
</ul>
28+
</div>

0 commit comments

Comments
 (0)