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 hints

Topics

Also asked at 8 companies


More Salesforce Questions

View all Salesforce questions