Available question text
Determine whether a single straight horizontal or vertical cut can split an m×n grid into two non-empty parts whose sums are equal, or can be made equal by discounting at most one cell from either part—with the extra requirement that the part from which a cell is removed must remain connected. The core challenge is to efficiently check, for every possible cut, if the sum difference is zero or can be matched by removing a single cell whose removal does not disconnect its side (up to 1e5 total cells).
Related questions
Continue with questions that share topics or the same question type.
- Equal Sum Grid Partition I
Coding
- Partition Array Into Three Parts With Equal Sum
Coding
- Partition Equal Subset Sum
Coding · 0-1 Knapsack · Array · Dynamic Programming
- Partition to K Equal Sum Subsets
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3548. Equal Sum Grid Partition II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source