Redian新闻
>
Bloomberg, Amazon 面经,为onsite攒RP
avatar
Bloomberg, Amazon 面经,为onsite攒RP# JobHunting - 待字闺中
p*x
1
为后天On site 攒人品。On site完了再发面经
A 家round 1 电面:
1. Talk about your research project.
2. Explain what is hash table. How to implement. Method for resolve
collision. Good Hash function property.
3. Find max value in Binary tree. Time complexity, how to optimize.
How about BST, the worst case time complexity.
4. Coding. Given an positive integer value, search a binary tree to find the
number of nodes, that start from the node there exist a path that the sum
of on the path is equal to the given number.
Follow up question, how to test. Consider magnitude.
A 家round 2 电面:
1. Write the code to count number of 1 in binary expression of given integer.
2. Given a file contains a list of ip address, but the dot in the ip adress
is missing. How to restore these ip address. The restored ip address means
all possible valid ip address. Should be a super set of original ip adresses.
3. OO design question. Design file system. How about adding symbolic link.
B 家电面:
1. Why bloomberg? Why finance.
2. Talk about research
3. What is OOP, advantage of OOP; What is virtual function.
4. Given two unsorted array find the intersection. Require at least two
solutions, and give time/space complexity
5. Many Brain teaser and problem solving:
一个立方体表面涂色,每个面切若干刀,生成的小立方体随即抽取掷骰子,问
涂色面朝上的几率
8个球有一个球比其他的重。用天平最少称几次能找出来
1~100 共100个数missing 1个,如何找出来;missing 2个呢?
其他记不住了,都是常见题。希望明天on site顺利,求祝福
avatar
f*t
2
Thanks for sharing.
Bless!
avatar
g*n
3
Mark!good
★ Sent from iPhone App: iReader Mitbbs Lite 7.52
avatar
l*8
4
Bless! thanks !
What does A round 1 -4 mean?
avatar
G*e
5
Big bless!
avatar
S*y
6
这个怎么做?
Given a file contains a list of ip address, but the dot in the ip adress
is missing. How to restore these ip address. The restored ip address means
all possible valid ip address. Should be a super set of original ip adresses.
avatar
b*e
7
用递归应该就可以了:
void ParseValidIP(string ip, int remaining_dots,
string prefix, vector& valid_ips);

means
adresses.

【在 S******y 的大作中提到】
: 这个怎么做?
: Given a file contains a list of ip address, but the dot in the ip adress
: is missing. How to restore these ip address. The restored ip address means
: all possible valid ip address. Should be a super set of original ip adresses.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。