NeetCode #757LC-1463Hard2-D Dynamic Programming
← Back to All Problems

#757 · #1463 · Cherry Pickup II(摘樱桃 II)

📌 Problem Statement & Constraints

Given a rows x cols grid of cherries, two robots start at (0, 0) and (0, cols-1). Each step both move down one row, to a column within one of their current column. Collect cherries, counting each cell once. Return the maximum collected. Constraints: 1 <= rows, cols <= 70, 0 <= grid[i][j] <= 100.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!