avatar
m*4
1
【 以下文字转载自 Quant 讨论区 】
发信人: mitchell1984 (呜呜呜), 信区: Quant
标 题: An impossible interview for me
发信站: BBS 未名空间站 (Tue Oct 12 16:03:08 2010, 美东)
Today I had my third-round interview with this company. Got some pretty
tough questions (from my standard). I won't regret that I failed this one,
because some questions are really beyond my ability.
1. n boxes, k balls, expected number of empty boxes.
2. an array with 0's and 1's, find in O(n) time and O(1) space the longest
sequence with equal number of 1's and 0's.
can do it with O(n) time and O(n) space. How to do O(1) space.
3. Suppose you have a four digit code. each one takes 0~9.
Now suppose that you have a very stupid code machine. you can enter any
length of coed into it:
if you enter 123456
it considers you entered three code:
1234
2345
3456
What is the smallest length of string I need to enter to guarantee that I
find out your code? How would you write such a string?
avatar
m*h
2
Pogoplug e02 用Marvell Kirkwood 88F6281。这个芯片有两个SATA 口,
有没有高手把4个sata0口管脚(pins)焊上连SATA 盘?
avatar
t*j
3
第一题有人答了,第二题之前本版有讨论,第三题看不懂。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。