Skip to content

Commit 6c92efe

Browse files
authored
Fixed file name and removed question description
1 parent ca86e3a commit 6c92efe

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

cpp/1463. Cherry Pickup II.cpp renamed to cpp/1463-cherry-pickup-ii.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
// https://leetcode.com/problems/cherry-pickup-ii/
2-
3-
4-
// You are given a rows x cols matrix grid representing a field of cherries where grid[i][j] represents the number of cherries that you can collect from the (i, j) cell.
5-
6-
// You have two robots that can collect cherries for you:
7-
8-
// Robot #1 is located at the top-left corner (0, 0), and
9-
// Robot #2 is located at the top-right corner (0, cols - 1).
10-
// Return the maximum number of cherries collection using both robots by following the rules below:
11-
12-
// From a cell (i, j), robots can move to cell (i + 1, j - 1), (i + 1, j), or (i + 1, j + 1).
13-
// When any robot passes through a cell, It picks up all cherries, and the cell becomes an empty cell.
14-
// When both robots stay in the same cell, only one takes the cherries.
15-
// Both robots cannot move outside of the grid at any moment.
16-
// Both robots should reach the bottom row in grid.
17-
18-
19-
Solution:
20-
211
#include <vector>
222
#include <algorithm>
233

0 commit comments

Comments
 (0)