1. 程式人生 > >[LeetCode] 85. Maximal Rectangle

[LeetCode] 85. Maximal Rectangle

ima http margin href cnblogs lan tex ali htm

1. 題目描述

技術分享圖片

2. 解題報告

此題解法可完全按照 [LeetCode] 84. Largest Rectangle in Histogram 的思路來解,即,可以把 m x n 的矩陣看作是m個直方圖來算,可以直接套用84題的代碼。

[LeetCode] 85. Maximal Rectangle