Skip to content

Commit 5916082

Browse files
Update algorithms/graphs/min_cost_valid_path/README.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 329fc6c commit 5916082

File tree

1 file changed

+4
-4
lines changed
  • algorithms/graphs/min_cost_valid_path

1 file changed

+4
-4
lines changed

algorithms/graphs/min_cost_valid_path/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
Given an m x n grid. Each cell of the grid has a sign pointing to the next cell you should visit if you are currently
88
in this cell. The sign of grid[i][j] can be:
99

10-
- 1 which means go to the cell to the right. (i.e go from grid[i][j] to grid[i][j + 1])
11-
- 2 which means go to the cell to the left. (i.e go from grid[i][j] to grid[i][j - 1])
12-
- 3 which means go to the lower cell. (i.e go from grid[i][j] to grid[i + 1][j])
13-
- 4 which means go to the upper cell. (i.e go from grid[i][j] to grid[i - 1][j])
10+
- 1 which means go to the cell to the right. (i.e., go from `grid[i][j]` to `grid[i][j + 1]`)
11+
- 2 which means go to the cell to the left. (i.e., go from `grid[i][j]` to `grid[i][j - 1]`)
12+
- 3 which means go to the lower cell. (i.e., go from `grid[i][j]` to `grid[i + 1][j]`)
13+
- 4 which means go to the upper cell. (i.e., go from `grid[i][j]` to `grid[i - 1][j]`)
1414

1515
> Notice that there could be some signs on the cells of the grid that point outside the grid.
1616

0 commit comments

Comments
 (0)