Plots With an Exact Harvest

Hard · Prefix Sums · about 40 min

A farm is a grid of fields; grid[r][c] is the yield of one field (a negative number is a loss).

Hard problems are part of TuringPath Pro. See plans.

Learn the pattern first: the Prefix Sums lesson.

More Prefix Sums problems