Maximal Rectangle

Total Accepted: 1231 Total Submissions: 6477 My Submissions

Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.

Discuss


You have not signed in, cannot submit your code.
Submit failed, try again please.
You have attempted to resubmit too soon. Please resubmit in a moment.

Send Feedback