码迷,mamicode.com
首页 >  
搜索关键字:leetcoe    ( 3个结果
leetcoe--47. Permutations II
1、问题描述 Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following un ...
分类:其他好文   时间:2017-08-31 11:07:36    阅读次数:188
[LeetCode]*85.Maximal Rectangle
题目Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing all ones and return its area.思路对于上图的一个01矩阵。我们可以一行一行的分析,假设第三行,我们按列扫描,遇到0时,柱子断开,重新形成柱子,遇到1时柱子高度加一。这样的话,我们就可以把问题转换...
分类:其他好文   时间:2015-05-14 22:05:23    阅读次数:137
leetcoe || 130、Surrounded Regions
problem: Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded region. For example, ...
分类:其他好文   时间:2015-04-28 18:36:50    阅读次数:140
3条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!