由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - leetcode Maximal Rectangle的测试数据有问题?
相关主题
求Leetcode OJ Maximal Rectangle的n^2解法请问一道题--给一个正方形矩阵,每个元素要么黑色要么白色,请找出最大的纯色子矩阵
Modified Maximal Rectangle problem from Leetcode算法--一个MXN matrix (0's and 1's)内求最大 rectangle(1's)
你们说leetcode做了*遍,是所有题都做了吗?histogram问题
关于 leetcode: Maximal Squareleetcode一道题
Maximal Rectangle TLE是指代码正确,但不是最优吗?再问Maximal Rectangle的N^2解法
关于我们做一个中文的online judge有用java过Maximal Rectangle的judge large的吗?
LeetCode Solutions in Swift 2.1 已更新至第88题Maximal Rectangle O(mn) 解法 非 histogram
Google interview questionOJ里面的Maximal Rectangle
相关话题的讨论汇总
话题: rectangle话题: maximal话题: 测试数据话题: leetcode话题: given
进入JobHunting版参与讨论
1 (共1页)
F********9
发帖数: 44
1
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.
input output expected
["01","10"] 4 1
大伙觉得答案该是几?
c*****a
发帖数: 808
2
1
F********9
发帖数: 44
3
要包住两个'1',为啥不是4呢?

【在 c*****a 的大作中提到】
: 1
r*****e
发帖数: 146
4
连成一片的才算
c*****a
发帖数: 808
5
01
10
这样是1
11
11
这样是4
110
110
000
这样还是4
10
10
10
10
这样也是4
你做了largest area in histogram了吗,做了就容易明白了
c********t
发帖数: 5706
6
01
10
里面只有两个矩形,面积都为1

rectangle

【在 F********9 的大作中提到】
: 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.
: input output expected
: ["01","10"] 4 1
: 大伙觉得答案该是几?

F********9
发帖数: 44
7
明白了,得是连成一片的才算。
这样啊。 多谢各位筒子。
1 (共1页)
进入JobHunting版参与讨论
相关主题
OJ里面的Maximal RectangleMaximal Rectangle TLE是指代码正确,但不是最优吗?
求最大submatrix sum关于我们做一个中文的online judge
题目求指点LeetCode Solutions in Swift 2.1 已更新至第88题
压马僧面对面Google interview question
求Leetcode OJ Maximal Rectangle的n^2解法请问一道题--给一个正方形矩阵,每个元素要么黑色要么白色,请找出最大的纯色子矩阵
Modified Maximal Rectangle problem from Leetcode算法--一个MXN matrix (0's and 1's)内求最大 rectangle(1's)
你们说leetcode做了*遍,是所有题都做了吗?histogram问题
关于 leetcode: Maximal Squareleetcode一道题
相关话题的讨论汇总
话题: rectangle话题: maximal话题: 测试数据话题: leetcode话题: given