solulubeta
Sign in
DSA Basics / Exam level
03.21 · Problem

The Best k by k Plot

Hard 2D prefix sums Pro

This problem is part of solulu Pro

A field is divided into a grid of small plots, each with a yield. A buyer wants a square block of k by k plots and, naturally, the block with the highest total yield.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 86 of 90 · updated 2026-10-12