由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - An impossible interview for me (转载)
相关主题
liverampOA题目[合集] IBM电话面试报告+面试题
amazon phone interview[合集] 一道Google面试题
CLRS上的一道题问最小窗口覆盖的面试题
问next permutation那道题GOOG intern interview 题目
帮忙看看这道DP算法题amazon question
Delete Digits怎样证明是最优解?一道老题目
默据最TMD伤人请教一道题目
乘BQ的东风,问一下这题怎么答?careercup上的一道题
相关话题的讨论汇总
话题: impossible话题: enter话题: interview话题: space话题: code
进入JobHunting版参与讨论
1 (共1页)
m**********4
发帖数: 774
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?
t*****j
发帖数: 1105
2
第一题有人答了,第二题之前本版有讨论,第三题看不懂。
1 (共1页)
进入JobHunting版参与讨论
相关主题
careercup上的一道题帮忙看看这道DP算法题
an interview questionDelete Digits怎样证明是最优解?
问两道微软题默据最TMD伤人
careercup书上一个老题乘BQ的东风,问一下这题怎么答?
liverampOA题目[合集] IBM电话面试报告+面试题
amazon phone interview[合集] 一道Google面试题
CLRS上的一道题问最小窗口覆盖的面试题
问next permutation那道题GOOG intern interview 题目
相关话题的讨论汇总
话题: impossible话题: enter话题: interview话题: space话题: code