Redian新闻
>
姐们们都吃哪个牌子的葡萄籽精华啊?
avatar
姐们们都吃哪个牌子的葡萄籽精华啊?# Fashion - 美丽时尚
m*6
1
Google:
1. Excel spread sheet, each cell is either number or function. When a number
cell is updated, how to effectively update all relevant function cells.
2. Given a folder, return a random file in the folder. File returned must be
uniformed distributed, O(1) memory, can only go through the file system
once.
3. Given an array of TreeNodes. Each Tree Node object only contains a parent
index field which is the index of the parent node in the array. Parent Node
is required to be in front of child node in the array. Array can contain
multiple trees. Root node has parent index pointing itself. Write a delete
function which takes the initial array list of TreeNodes as well as a Set of
TreeNodes to be deleted. Delete all tree nodes in the delete set as well as
its children. Resulting array list can not have holes.
4. Given an array of numbers and a min gap G. Return the max sum in the
array, max sum may not contain two numbers that are less than G apart.
5. Design Google Doc.
Facebook:
1 (Warm up). Given string a and string b, return if a contains b. (can not
use contains obviously)
2 (Warm up). Given a string, return if it's a palindrome. (aba is a
palladium)
3. Given a matrix, implement two functions. Get sum takes minX, maxX, minY,
maxY and returns the sum of the rectangle. Set index takes x, y, value and
sets cell x,y to that value. Get sum need to be O(1) and set index can be
slow.
4. Each letter maps to its location in the alphabet. (A->1, B->2, K->11, Z->
26). Given a valid int string, return the number of alphabet sequence it can
map to. For example, 111 can be AAA, AK, KA, so the return value should be
3.
5. Given an almost sorted array and max deviation D. Each element in the
array can not be more than D apart from its sorted index. Sort the array.
6. Given int array P and int N. Return the number of ways you can make N
with elements of array P. For example, if P is [1,2] and N is 3, you can do
111,12. so the answer is 2. You may not count 1,2 and 2,1 twice.
7. Given a int array list, return a sub array list that contains the longest
non decreasing sequence. If there are more than one available, you can
return any one.
8. Design Instagram.
Misc:
1. Given a Date object that contains year, month and day and int addition
days, Implement the add function and return the resulting Date object.
2. Given a string s and string pattern. Return if s fits the pattern.
Pattern may contain . and *. . can be matched to any character where * can
be matched to any sequence of characters. For example, abba matches pattern
*a and .b.a.
3. Implement a bowling game. There are two functions, roll(int pins), and
getScore(). Caller will call roll until the game is over and call getResult
to get the result.
4. Assume progress is a double between 0 and 1 and time is also a double
between 0 and 1. You are given a function getProgress(double time),
implement a function getTime(double progress). You may define an epsilon.
5. What is the run time complexity of merging one link list to another? What
is the run time complexity of Link List addAll in Java and C++? Why?
6. Implement pow(double base, int exponent).
avatar
b*i
2
娃现在5个月,可以睡整觉,但是是跟我们co-sleep的。在犹豫要不要训练她睡自己的
小床,而且跟我们分房间。跟我们分房睡的话,顾虑挺多的,怕training失败反而把已
经建立的良好的睡眠习惯给破坏了,怕半夜温度变化会着凉,怕她叫唤的时候因为我们
没法及时把pacifier给她塞上而转变成大哭。最主要的是,我跟老公已经养成了搂着她
软软的滑滑的小身子睡觉的习惯,舍不得把她移走。但如果不训练她睡自己的小床,以
后会不会很粘人啊?
avatar
s*0
3
如题
avatar
l*g
4
赞,祝offer。都是很累人累心的题目是
avatar
c*d
5
不能先分床同房睡么??

娃现在5个月,可以睡整觉,但是是跟我们co-sleep的。在犹豫要不要训练她睡自己的
小床,而且跟我们分房间。跟我们分房睡的话,顾虑挺多的,怕training失败反而把已
经建立的良好的睡眠习惯给破坏了,怕半夜温度变化会着凉,怕她叫唤的时候因为我们
没法及时把pacifier给她塞上而转变成大哭。最主要的是,我跟老公已经养成了搂着她
软软的滑滑的小身子睡觉的习惯,舍不得把她移走。但如果不训练她睡自己的小床,以
后会不会很粘人啊?

【在 b*****i 的大作中提到】
: 娃现在5个月,可以睡整觉,但是是跟我们co-sleep的。在犹豫要不要训练她睡自己的
: 小床,而且跟我们分房间。跟我们分房睡的话,顾虑挺多的,怕training失败反而把已
: 经建立的良好的睡眠习惯给破坏了,怕半夜温度变化会着凉,怕她叫唤的时候因为我们
: 没法及时把pacifier给她塞上而转变成大哭。最主要的是,我跟老公已经养成了搂着她
: 软软的滑滑的小身子睡觉的习惯,舍不得把她移走。但如果不训练她睡自己的小床,以
: 后会不会很粘人啊?

avatar
d*y
6
在吃GNC
还行

【在 s********0 的大作中提到】
: 如题
avatar
m*6
7
Google offered T5.
Facebook didn't like my Instagram answer, I didn't get an offer.
Jet.com indicated that they want to make me an offer that is heavy on stock
options. But they got bought by Walmart before they can finalize.
I have been in finance for 8 years. My current firm is underperforming right
now. I thought it's a good time for me to get out of finance and do
something different. But my previous boss learned through friends that I'm
job searching, he convinced me to interview with them. They ended up making
me a god father offer that is way above Google's package. Looks like I'm
staying in finance unless my current employer enforces some crazy non
compete. I don't think they have enough money to pay non compete right now
though.
avatar
n*y
8
not necessary
avatar
p*7
9
costco卖的那个。
avatar
f*t
10
恭喜楼主!
avatar
l*9
11
能睡整觉还有啥好训的呢。我觉得训练是因为娃睡不好,有sleeping deprivation才有
必要,co-sleep无所谓。

【在 b*****i 的大作中提到】
: 娃现在5个月,可以睡整觉,但是是跟我们co-sleep的。在犹豫要不要训练她睡自己的
: 小床,而且跟我们分房间。跟我们分房睡的话,顾虑挺多的,怕training失败反而把已
: 经建立的良好的睡眠习惯给破坏了,怕半夜温度变化会着凉,怕她叫唤的时候因为我们
: 没法及时把pacifier给她塞上而转变成大哭。最主要的是,我跟老公已经养成了搂着她
: 软软的滑滑的小身子睡觉的习惯,舍不得把她移走。但如果不训练她睡自己的小床,以
: 后会不会很粘人啊?

avatar
s*a
12
到底是该吃葡萄籽还是吃石榴籽?

【在 s********0 的大作中提到】
: 如题
avatar
m*6
13
Thank you
avatar
b*i
14
这样以后还得再train一次分房。懒妈想以此两个都搞定:-P

【在 c**********d 的大作中提到】
: 不能先分床同房睡么??
:
: 娃现在5个月,可以睡整觉,但是是跟我们co-sleep的。在犹豫要不要训练她睡自己的
: 小床,而且跟我们分房间。跟我们分房睡的话,顾虑挺多的,怕training失败反而把已
: 经建立的良好的睡眠习惯给破坏了,怕半夜温度变化会着凉,怕她叫唤的时候因为我们
: 没法及时把pacifier给她塞上而转变成大哭。最主要的是,我跟老公已经养成了搂着她
: 软软的滑滑的小身子睡觉的习惯,舍不得把她移走。但如果不训练她睡自己的小床,以
: 后会不会很粘人啊?

avatar
y*8
15
me too, called trunature..

【在 p********7 的大作中提到】
: costco卖的那个。
avatar
l*z
16
强人啊!
具体说说,狗的offer是多少?crazy high offer又是多少?也许狗能beat呢

stock
right
making

【在 m********6 的大作中提到】
: Google offered T5.
: Facebook didn't like my Instagram answer, I didn't get an offer.
: Jet.com indicated that they want to make me an offer that is heavy on stock
: options. But they got bought by Walmart before they can finalize.
: I have been in finance for 8 years. My current firm is underperforming right
: now. I thought it's a good time for me to get out of finance and do
: something different. But my previous boss learned through friends that I'm
: job searching, he convinced me to interview with them. They ended up making
: me a god father offer that is way above Google's package. Looks like I'm
: staying in finance unless my current employer enforces some crazy non

avatar
b*i
17
现在不分开睡,以后会不会分不开啊?

【在 l**********9 的大作中提到】
: 能睡整觉还有啥好训的呢。我觉得训练是因为娃睡不好,有sleeping deprivation才有
: 必要,co-sleep无所谓。

avatar
g*e
18
Would you mind sharing a ballpark number or ranges?
avatar
l*i
19
Congrats! Mind sharing ur solution for the Excel problem? thx
avatar
m*6
20
For the excel question, the solution is DFS and link list.
Say each cell contains value as well as a list of depended cells.
void update(Cell c, Set s, LinkedList l)
if (!s.add(c)) return;
for (Cell d : c.dependents)
update(d,s,l);
l.addHead(c);
List updateOrder(Cell c)
Set s = new HashSet();
LinkedList l = new LinkedList();
update(c,s,l);
Return l;
avatar
m*6
21
I'm getting Google + 100k all cash
No way Google up their offer 100k.
avatar
l*g
22
[在 monopoly86 (monopoly) 的大作中提到:]
:I'm getting Google + 100k all cash
:No way Google up their offer 100k.
狗给你300k+吗?大牛逼啊!congrats!
avatar
G*n
23
T5 300k应该normal的.

★ 发自iPhone App: ChineseWeb 11

【在 l**g 的大作中提到】
: [在 monopoly86 (monopoly) 的大作中提到:]
: :I'm getting Google + 100k all cash
: :No way Google up their offer 100k.
: 狗给你300k+吗?大牛逼啊!congrats!

avatar
l*z
24
关键狗现在给你的是多少?狗T5其实是能给到40万的。。。
还有就是match的啥子组,做dl比做finance前途可能要光明不少。。。

【在 m********6 的大作中提到】
: I'm getting Google + 100k all cash
: No way Google up their offer 100k.

avatar
w*p
25
How do you solve the delete function in Google question. 3 ? Could you talk
about more
avatar
m*6
26
For question 3, use a new position array and keep track of number of deleted
. Going through the array once, if a node is in delete set or if the new
position of parent is -1. Delete the node by increment delete count and set
the new position to -1. If the node is not deleted, new index is current
index minus number of deleted nodes. Move the node to new index and reset
the parent index using the new position array. Trim the array list after you
finish.
avatar
E*e
27
What about G qs 4
4. Given an array of numbers and a min gap G. Return the max sum in the
array, max sum may not contain two numbers that are less than G apart.
avatar
m*6
28
I used recursion.
F(k) = Max(F(k-1), array[k] + F(k-G-1))
Use dp to save F(k)
If k is negative, F(k) is 0
avatar
E*e
29
thx, big cong

【在 m********6 的大作中提到】
: I used recursion.
: F(k) = Max(F(k-1), array[k] + F(k-G-1))
: Use dp to save F(k)
: If k is negative, F(k) is 0

avatar
u*8
30
大妞,膜拜
avatar
a*l
31
How to solve q2 of G?
Does folder contains sub-folders?
avatar
m*6
32
Yes. Folder contains sub folders.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。