Skip to content

Commit 391aaab

Browse files
committed
Create README - LeetHub
1 parent 4d9ff17 commit 391aaab

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

0064-minimum-path-sum/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<h2><a href="https://leetcode.com/problems/minimum-path-sum/">64. Minimum Path Sum</a></h2><h3>Medium</h3><hr><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>
9+
<strong>Input:</strong> grid = [[1,3,1],[1,5,1],[4,2,1]]
10+
<strong>Output:</strong> 7
11+
<strong>Explanation:</strong> Because the path 1 &rarr; 3 &rarr; 1 &rarr; 1 &rarr; 1 minimizes the sum.
12+
</pre>
13+
14+
<p><strong class="example">Example 2:</strong></p>
15+
16+
<pre>
17+
<strong>Input:</strong> grid = [[1,2,3],[4,5,6]]
18+
<strong>Output:</strong> 12
19+
</pre>
20+
21+
<p>&nbsp;</p>
22+
<p><strong>Constraints:</strong></p>
23+
24+
<ul>
25+
<li><code>m == grid.length</code></li>
26+
<li><code>n == grid[i].length</code></li>
27+
<li><code>1 &lt;= m, n &lt;= 200</code></li>
28+
<li><code>0 &lt;= grid[i][j] &lt;= 200</code></li>
29+
</ul>

0 commit comments

Comments
 (0)