由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 为啥cell reads是44啊?哪位给解释下?多谢了
相关主题
贴点面试题问道高频设计题
贴点面试题, ms和google的微软 oncampus interview
A家onsite的system design, 求大牛们说说自己的设计想法, 相信word search BST 解法,大测试超时,请大家指点迷津
matrix 0 1组成,找最大的1组成的clustercodility一道题
P家面经怎么准备一些hardcore C++的interview
网页点击一个button生成文件下载的功能怎么实现的?yelp vs 微软
pure storage 面经 已挂如果给随即函数rand[1,5] 如何产生rand[1,7]
SQL developer 微软contractor职位讨论一道经典题
相关话题的讨论汇总
话题: blob话题: cell话题: 0000000000话题: reads话题: sample
进入JobHunting版参与讨论
1 (共1页)
b**********5
发帖数: 7881
1
A Blob is a shape in two-dimensional integer coordinate space where all
cells have at least one adjoining cell to the right, left, top, or bottom
that is also occupied. Given a 10x10 array of boolean values that represents
a Blob uniformly selected at random from the set of all possible Blobs that
could occupy that array, write a program that will determine the Blob
boundaries.
Optimize first for finding the correct result, second for performing a
minimum number of cell
Boolean value reads, and third for the elegance and clarity of the solution.
Sample input:
0000000000
0011100000
0011111000
0010001000
0011111000
0000101000
0000101000
0000111000
0000000000
0000000000
Sample output:
Cell Reads: 44
Top: 1
Left: 2
Bottom: 7
Right: 6
为啥结果是44啊?哪位给解释下?多谢了
z**********g
发帖数: 26
2
某纽约对冲基金code test吧。。。
http://chaosinmotion.com/blog/?p=893
话说要做好性格测试,做出44依旧被拒了
1 (共1页)
进入JobHunting版参与讨论
相关主题
讨论一道经典题P家面经
amazon 1st phone interview网页点击一个button生成文件下载的功能怎么实现的?
问道题pure storage 面经 已挂
[Job Opening] 3D Engine Developer - Physics and Low Level OptimizationSQL developer 微软contractor职位
贴点面试题问道高频设计题
贴点面试题, ms和google的微软 oncampus interview
A家onsite的system design, 求大牛们说说自己的设计想法, 相信word search BST 解法,大测试超时,请大家指点迷津
matrix 0 1组成,找最大的1组成的clustercodility一道题
相关话题的讨论汇总
话题: blob话题: cell话题: 0000000000话题: reads话题: sample