Available question text
Reconstruct a 2×n binary matrix whose column sums equal the given colsum array and whose top and bottom row sums equal upper and lower respectively, returning any valid matrix or an empty array if impossible. The core challenge is a feasibility/assignment problem over columns with colsum values 0,1,2 (where 2 forces a 1 in both rows and 1s must be distributed to meet the row totals).
Related questions
Continue with questions that share topics or the same question type.
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 1253. Reconstruct a 2-Row Binary Matrix
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source