由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - careercup书上一个老题
相关主题
这两道题(CareerCup 150)的答案是不是有问题啊?听说过Google有两个Hiring Committee的吗?
问个老题 - max submatrix with the same border问一道老题
careerup 150的一道经典题careercup上的一道题
求分析这题的时间复杂度bit manipulation 小题
问一个古老的问题再问一道老题
Smallest Rectangle Enclosing Black Pixels问个google面试题
My Microsoft Interview Questionscareercup一道amazon的面试题
CareerCup 上一道老题amazon question
相关话题的讨论汇总
话题: subcolumn话题: each话题: column话题: filled话题: algorithm
进入JobHunting版参与讨论
1 (共1页)
i****h
发帖数: 321
1
Imagine you have a square matrix, where each cell is filled with either
black or
white. Design an algorithm to find the maximum subsquare such that all four
borders are filled with black pixels.
解释是:
This algorithm does the following:
1. Iterate through every (full) column from left to right.
2. At each (full) column, look at the subcolumns (from biggest to smallest).
3. At each subcolumn, see if you can form a square with the subcolumn as the
left
side. If so, update currentMaxSize and go to th
x****r
发帖数: 99
2
同问,,,这题我看他的解也很迷茫,感觉那个电子书里面有的复杂度是乱说的,比如
matrix里面找
max sub-matrix sum那题他的优化只做了一半只能到N^5,还有N^4和N^3的解法都没说

four
smallest).
the

【在 i****h 的大作中提到】
: Imagine you have a square matrix, where each cell is filled with either
: black or
: white. Design an algorithm to find the maximum subsquare such that all four
: borders are filled with black pixels.
: 解释是:
: This algorithm does the following:
: 1. Iterate through every (full) column from left to right.
: 2. At each (full) column, look at the subcolumns (from biggest to smallest).
: 3. At each subcolumn, see if you can form a square with the subcolumn as the
: left

h**6
发帖数: 4160
3
这题应该有N^3的解法,楼主所列的方法,恐怕是N^4的
1 (共1页)
进入JobHunting版参与讨论
相关主题
amazon question问一个古老的问题
Amazon algorithm question, googleSmallest Rectangle Enclosing Black Pixels
抛砖引玉:Careercup 150题中的错误My Microsoft Interview Questions
请教CareerCup中的ROBOT MATRIX PATH那道题CareerCup 上一道老题
这两道题(CareerCup 150)的答案是不是有问题啊?听说过Google有两个Hiring Committee的吗?
问个老题 - max submatrix with the same border问一道老题
careerup 150的一道经典题careercup上的一道题
求分析这题的时间复杂度bit manipulation 小题
相关话题的讨论汇总
话题: subcolumn话题: each话题: column话题: filled话题: algorithm