NeetCode #928LC-1727MediumMath & Geometry
← Back to All Problems

#928 · #1727 · Largest Submatrix With Rearrangements(重新排列后的最大子矩阵)

📌 Problem Statement & Constraints

Given an m x n binary matrix, you may rearrange the elements of each column in any order. Return the area of the largest all-ones submatrix obtainable after rearranging. Constraints: 1 <= m, n <= 10^5, 1 <= m * n <= 10^5, each matrix[i][j] is 0 or 1.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!