Skip to content

Commit 4b062ef

Browse files
committed
update the comments
1 parent 344c749 commit 4b062ef

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

Diff for: algorithms/cpp/minimumPathSum/minimumPathSum.cpp

+19-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,25 @@
22
// Author : Hao Chen
33
// Date : 2014-06-21
44

5-
/**********************************************************************************
6-
*
7-
* Given a m x n grid filled with non-negative numbers, find a path from top left to
8-
* bottom right which minimizes the sum of all numbers along its path.
9-
*
10-
* Note: You can only move either down or right at any point in time.
11-
*
12-
**********************************************************************************/
5+
/*****************************************************************************************************
6+
*
7+
* Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right
8+
* which minimizes the sum of all numbers along its path.
9+
*
10+
* Note: You can only move either down or right at any point in time.
11+
*
12+
* Example:
13+
*
14+
* Input:
15+
* [
16+
* [1,3,1],
17+
* [1,5,1],
18+
* [4,2,1]
19+
* ]
20+
* Output: 7
21+
* Explanation: Because the path 1→3→1→1→1 minimizes the sum.
22+
*
23+
******************************************************************************************************/
1324

1425
#include <limits.h>
1526
#include <iostream>

0 commit comments

Comments
 (0)