摘要: 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( 阅读全文
posted @ 2013-10-25 15:35 假日笛声 阅读(277) 评论(0) 推荐(0) 编辑