摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.求出0,1矩阵中的最大矩形区域:DP问题,可以使用数组记下当前行位... 阅读全文
posted @ 2015-12-08 22:25 eversliver 阅读(594) 评论(0) 推荐(0) 编辑
摘要: Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent ... 阅读全文
posted @ 2015-12-08 20:21 eversliver 阅读(617) 评论(0) 推荐(0) 编辑