摘要:
Problem Description:Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.Basic idea: To increas one dimension by one, then calculate the maximum of other dimension every time. 1 class Solution { 2 public: 3 int maximalRectangle( 阅读全文