Cherry Pickup II at Salesforce
Hard72.3% acceptance
This problem has 25.0% frequency at Salesforce.
Problem Description
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. You have two robots that can collect cherries for you: * **Robot #1** is located at the **top-left corner** `(0, 0)`, and...
Read full problem and hintsTopics
Also asked at 8 companies
More Salesforce Questions
Minimum Operations to Reduce an Integer to 0MediumSubarray Product Less Than KMediumRemove Adjacent Almost-Equal CharactersMediumSmallest Substring With Identical Characters IHardClosest Equal Element QueriesMedium
View all Salesforce questions