Array
1727. Largest Submatrix With Rearrangements
A binary matrix whose columns you may reorder freely; find the largest all-1s rectangle achievable after some column permutation. Compute per-cell column-heights (histogram), then — because columns…
Loading…