由买买提看人间百态

topics

全部话题 - 话题: flattening
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
f*****e
发帖数: 210
1
来自主题: JobHunting版 - 被bb拒了
我非cs的phd。
其实面试的technical问题很简单
第一轮:
1.给一些string aaabbb, aab,...找出连续出现次数最多的字母以及次数
2.buy and sell stock
3.binary search tree查找node
第二轮:
1.string里面有single quote, 要把single quote里面的string存起来
2.flatten tree
3.LC原题,Anagrams
code都写出来了
感觉自己挂在manager或者是hr这关上了,因为前两轮觉得面试官都很满意。
manager问我的一些问题觉得自己答得不好,比如问我用C++做过什么有意思的事情。其
实我最近用java,还做了一个小网页,用C++没做过什么,所以我就说主要是做题。。
。还有问我为什么C++比java快,我开始说C++更难学,然后说道java runs in virtual
machine.
感觉自己每次都是栽在manager这关,接下来还有面试,希望大家能给些指导意见。还
有面试的时候问manager什么问题比较好?感觉自己就是不讨manger喜欢的那种类型。
s********e
发帖数: 340
y*****e
发帖数: 712
3
谢谢ls各位,果真思路宽阔多了,我来总结一下大家的想法
第一题就是 flatten and reverse
第二题用iteration比recursion更有效
第三题用count sort应该可以,我还看到一个叫LSD的算法,专门排序等长的strings,
http://algs4.cs.princeton.edu/51radix/LSD.java.html, 其实就是count sort, 不过用上了fixed length这个条件。
m*******3
发帖数: 6
4
来自主题: JobHunting版 - 报个Epic offer
面经就是常规的:一轮电话 + online做题 + onsite。电话就是闲聊经验,为什么来
Epic
online做题很简单,都是careercup上面的,偶尔可能会碰到
DP的问题;onsite有case study和自己project的presentation,也基本都是闲聊。
onsite照顾的很周到,吃喝瞎逛消费无上限,可以带家属。
四周前onsite,给了base 126K + relo 10K。非牛人,美国小硕+小公司2年经验,目前
工作web相关。title就是software developer,据说级别编制比较flatten。HR说可以
任意选组。听说web和mobile组比较好?
base给的很有诚意,涨了近40%吧。个人不介意地点,而且自己读研的时候也是在大农
村,所以小城市也无所谓。onsite的时候对madison感觉还不错,可能去的那两天都是
晴天吧,不是很冷。个人没什么大追求,喜欢简单宁静的生活,反正就是养家糊口吧。
坏处是用的技术比较旧,而且保险比较差,family的话每月要自己交2百多。好处是房
子便宜,适合养家吧。公司环境也不错,building都... 阅读全帖
b**********5
发帖数: 7881
5
来自主题: JobHunting版 - 一些人简历上没有本科学校
学校有个屁用?! 我干了这么多年, 连个flatten nested map都没写出来。。。
b**********5
发帖数: 7881
6
来自主题: JobHunting版 - Uber 电面
Mlgb 的, 我的面试题是:
Give you a json string, 怎么去flatten。。。
比如 string 为 a:{b:{c:。。。}
要输出a:b:c:...
l*******m
发帖数: 1096
p****U
发帖数: 109
8
来自主题: JobHunting版 - 最近一些面经
Amazon Boston:
电面:1. implement bool isSubTree(TreeNode *a, TreeNode *b ) ; follow up how
about if a tree is significantly large than the other one.
2.design deck of cards
第一轮 leetcode Anagram,
第二轮 .design deck of cards; how to shuffle?
第三轮 design parking lot and payment system, follow up suppose there is a
control system for all parking lot how to implement all parking lot payment
systems in US? discussion in distribute system/database
第四轮 implement LRU /follow up multithread 哪里加锁
Ver... 阅读全帖
b*********n
发帖数: 1258
9
来自主题: JobHunting版 - 下面这道uber电面,怎么做?
写了200多行,2个小时,这电面肯定要跪
大牛有什么好的算法吗?
题目就是flatten json to a list of map, 有一段json,比如说如下:
{
"uuid": "abc",
"properties": {
"sessionName": "Test session name",
"waypoints": [
{"uuid": "def", "properties": {"latitude": 3}}
]
}
}
把它转化成List>, map里面uuid是key, properties是value。
所以结果应该像下面
[
{"uuid": "abc", "properties": {"sessionName": "Test session name", "
waypoints": ["def"]}},
{"uuid": "def", "properties": {"latitude": 3}},
...
]
b**********5
发帖数: 7881
10
来自主题: JobHunting版 - 惨的不是被twitter layoff的人
真的找不到。。。 twitter没要。。。 FB一个duplicate的3sum没写好, uber一个
flatten nested hashmap没写好
a*****u
发帖数: 1712
11
来自主题: JobHunting版 - 惨的不是被twitter layoff的人
有时候拒你理由不是你想的那样的,去问问feedback

真的找不到。。。 twitter没要。。。 FB一个duplicate的3sum没写好, uber一个
flatten nested hashmap没写好
b**********5
发帖数: 7881
12
来自主题: JobHunting版 - 某打车公司用java面可以吗?
放屁! 你试试用java 7 去些个flatten hashmap看看。。。
h*********g
发帖数: 51
13
来自主题: JobHunting版 - 报GF offer,分享一些面经
本人fresh phd,明年毕业,有过两次大公司实习经历。最近面了FLAGT,比较幸运地拿
到了GF的offer,下面是面经
Twitter
1. 第一轮具体题目忘了
2. Design parking lot
3. Thesis discussion and high-level designs and tradeoffs
4. Translate an expression to tree. 就是把逆波兰表达式转化成树形结构。
5. Behavior.
T是第一个onsite的公司,面试的时候挺紧张的,感觉不太好。幸运地是碰到了两个国
人面试官,人真的很好,一直给我提示,给我鼓励说答得非常好,真的非常感谢!可惜
的是最终快到手的offer被烙印manager黑掉了,详情见前面发的帖子。总的感觉是
Twitter的5轮back-to-back 面试,中间没有休息,没有午餐,面完就被赶出来了,让
人很崩溃。可能裁员导致人心惶惶,recruiter也是一点不上心。
Airbnb
1. Given client server, code. Client... 阅读全帖
f*******r
发帖数: 976
14
来自主题: JobHunting版 - 报GF offer,分享一些面经
恭喜,offer不错

本人fresh phd,明年毕业,有过两次大公司实习经历。最近面了FLAGT,比较幸运地拿
到了GF的offer,下面是面经
Twitter
1. 第一轮具体题目忘了
2. Design parking lot
3. Thesis discussion and high-level designs and tradeoffs
4. Translate an expression to tree. 就是把逆波兰表达式转化成树形结构。
5. Behavior.
T是第一个onsite的公司,面试的时候挺紧张的,感觉不太好。幸运地是碰到了两个国
人面试官,人真的很好,一直给我提示,给我鼓励说答得非常好,真的非常感谢!可惜
的是最终快到手的offer被烙印manager黑掉了,详情见前面发的帖子。总的感觉是
Twitter的5轮back-to-back 面试,中间没有休息,没有午餐,面完就被赶出来了,让
人很崩溃。可能裁员导致人心惶惶,recruiter也是一点不上心。
Airbnb
1. Given client server, ... 阅读全帖
k****r
发帖数: 807
15
来自主题: JobHunting版 - 报GF offer,分享一些面经
请问lz flatten a list with left, right, up and down 这道题。
每个node只有left,right,up,down node,然后每次up,down还有可能继续有其他
extended node吗?
O(1)要求是指用iterative方法写吗? recursive的算不算O(1)呢?
谢谢,
r*******g
发帖数: 1335
16
来自主题: JobHunting版 - 报GF offer,分享一些面经
回复这个帖子
求问楼主,flatten 4 dimension linked list,怎么做到O(1) space,题目也是要求
最后的linkedlist是排序好的吗?O(1) space是指什么?
另外,Translate an expression to tree这种题也要求现场写吗?知道就知道,不知
道根本不可能写出来锕
thanks.
r*******g
发帖数: 1335
17
来自主题: JobHunting版 - 报GF offer,分享一些面经
回复这个帖子
求问楼主,flatten 4 dimension linked list,怎么做到O(1) space,题目也是要求
最后的linkedlist是排序好的吗?O(1) space是指什么?
另外,Translate an expression to tree这种题也要求现场写吗?知道就知道,不知
道根本不可能写出来锕
thanks.
t**r
发帖数: 3428
18
来自主题: JobHunting版 - g面经来一个。
Given a list which can can contain elements as well as lists, write an
iterator to flatten a nested list.

发帖数: 1
19
来自主题: JobHunting版 - 微软强力内推 - 第二波
陆陆续续收到了几百封简历。因为工作强度问题,想开始第二波更有“针对性”地强力
内推.和之前的第一波内推帖相比,这里有个亮点:
为什么来微软?
a.公司傻有钱进来就给办绿卡,不论你是F1还是H1B;
b.自从Satya上任,公司各种改革,风格和google靠拢,整体结构flatten;
c. 福利待遇除了股票给的不如flg,其他都很好;最近改善了free snack,经常去
google的同事说比google好(PS:消息不准的,换100刀quarter去打他)
A. 内推宗旨:
帮助[color=Red]符合qualification[/color]的朋友一个星期onsite, 一个月拿offer
入职; 不分种族以及任何上纲上线的噱头,说白了,就是你实力够,我帮你开个
Express lane, 尽快拿Offer
更多详情参见“强力内推第一波”: http://www.mitbbs.com/article_t/JobHunting/33179347.html
B. 内推对象:
1. Full time SDE experience 1 year+;(差一个月可以,实习不算, SDET... 阅读全帖
s****n
发帖数: 199
20
来自主题: JobHunting版 - 脸家电话面试面筋
两道leetcode原题
1. 判断一个array of integer是不是单调: 12345 = true, 54321 = true, 12321 =
false, 11111 = true, 11112 = true, 22221 = true, 11221 = false
2. flatten bst成为linkedlist,要求最后的linkedlist必须是sorted而且不能占用额
外的空间。
没刷到这两道题,第二道题磕磕碰碰没做完
脸家前辈来说说是不是这样就没戏了?
谢谢

发帖数: 1
21
来自主题: JobHunting版 - 求FB 面试 leetcode题目列表
534 Design TinyURL 0.0% Medium
283 Move Zeroes 50.7% Easy
301 Remove Invalid Parentheses 35.5% Hard
273 Integer to English Words 22.4% Hard
621 Task Scheduler 42.4% Medium
67 Add Binary 33.2% Easy
325 Maximum Size Subarray Sum Equals k 43.1% Medium
689 Maximum Sum of 3 Non-Overlapping Subarrays 41.2% Hard
253 Meeting Rooms II 39.3% Medium
17 Letter Combinations of a Phone Number 35... 阅读全帖
a****i
发帖数: 4783
22
realtor 会骗你,buyer realtor永远会说“the rate will go up, the price will
go up or flatten out. Now is the best time to buy"
Seller realtor会说,“the rate will go up, the price continues dropping, now
is the best time to sell".
z***e
发帖数: 1757
23
来自主题: Living版 - rr地问这里有人开crv的么?
passenger seat can be flattened backward.
l**i
发帖数: 243
24
来自主题: Living版 - subfloor怎么flatten?
装地板准备中,
subfloor有很大一块凹下去的,深的地方有1/4"
按1/8"深度划的的范围就挺大了
1/8"的plywood比较难买,能不能直接上水泥找平?
w*****m
发帖数: 20421
25
来自主题: Living版 - subfloor怎么flatten?
铺上水泥不就不能砸钉子了,买SAW啊,版上这么多SAW爱好者
说实话,木地板这玩意,铺不好很容易的,翘起,断裂,张口,
聪明的一休,赵州桥的可能都很大。
m*f
发帖数: 3078
26
来自主题: Living版 - subfloor怎么flatten?
有一种专用的,具体名称你可能要google了
t*****e
发帖数: 15794
27
来自主题: Living版 - subfloor怎么flatten?
买豆腐之后呢
l**i
发帖数: 243
28
来自主题: Living版 - subfloor怎么flatten?
请问买SAW之后咋整呢?
b*****n
发帖数: 2324
29
来自主题: Living版 - How to Make Pillows Fluffy Again
这招管用吗?
A tennis ball or two, tied in a clean pillowcase, perks up a flattened
pillow made from polyester or fiberfill. Place the pillow and the knotted
pillowcase into a dryer set to low heat and tumble them together, checking
after 10 to 15 minutes. Remove the materials once the pillows are as fluffy
as you'd like.
http://homeguides.sfgate.com/make-pillows-fluffy-again-90035.ht
t****t
发帖数: 610
30
来自主题: Living版 - laminate能修复吗?
May be due to bad subfloor. If that's true, you need to remove laminate,
screw down your subfloor if it is loose or flatten your subfloor, and
reinstall.
p*********l
发帖数: 30
31
来自主题: Medicine版 - Help on Spinal Pain
Symptom - Pain and numbness in the neck, shouders, arm, and back.
Report by MRI - left central disc extrusion; cord deformity; flattening of
ventral.
Treatement - None because doctor's appointment is 1.5 months aways from when
the pain starts.
Please advise. Questions:
1. What to do in the mean time while awaiting for treatement?
2. What to expect to do when seeing doctor in a few more weeks?
Please help. Your advise is much appreciated. Thank you very much.
Health is precious! Hope everyone is
c**i
发帖数: 6973
32
来自主题: Medicine版 - Surgery Teamwork
柴姆斯, 特别培训提高手术成功率. VOA Chinese, Nov. 1, 2010.
http://www.voanews.com/chinese/news/20101101-Health-Surgery-Team-Training-106472753.html
("报告的共同作者、密西根大学的詹姆斯·巴吉安表示,最大的挑战之一就是让地位较
低的工作人员--比如护士--说出自己的想法。他说:“通常情况下,那些地位最高的人
会觉得沟通很好,但是地位越低的人在发表意见时经常会觉得非常压抑")
Note:
(a) The report is translated from
Carol Pearson, Teamwork And Communication Training Yield More Success In
Operating Rooms. VOA, Oct. 19, 2010.
http://www.voanews.com/english/news/health/Teamwork-And-Communication-Training-Yield-More-Success-In-... 阅读全帖
x********l
发帖数: 54
33
来自主题: NextGeneration版 - 37周内检回来 疑惑ing
今天刚内检回来 代班ob说 开0。5cm,flatten(不懂)80%,这里flatten80%是不是指
的是宫颈软化80%?我需要注意些什么吗?去检查的时候刚和老公吵架,我错了,没好好
询问医生。有没有了解的姐妹?谢谢啦
f****s
发帖数: 3078
34
来自主题: NextGeneration版 - 37周内检回来 疑惑ing
我也是37周第一次内检,OB说开2cm,但是我没听到后面“flatten”百分之多少,也不
知道是不是我慌神没听见(我经常慌神- -!)我这样是不是也快啦?
p*********u
发帖数: 519
35
来自主题: NextGeneration版 - 头等大事: 看看扁头究竟是啥样
赶头盔大潮,偶也来学习了一下,看看扁头究竟和圆头有啥差别。 扁头英文是
flattened head,google搜出的第一张图果然就是最好的。
原来都是娃爹一个人忙活娃的头等大事,看了此图后,才了解娃爹真是用心良苦啊。
a**********8
发帖数: 1393
36
看这里
Hemangiomas of Infancy
Hemangiomas of infancy (which used to be called strawberry patches) are
found in at least 2 of every 100 babies born. Although frequently they are
not noticeable at birth, they appear within the first or second month of
life as a red patch or raised dot. They can occur on any area of the body,
but are seen most commonly on the head, neck, and trunk. Usually a child has
just a single hemangioma, but occasionally these marks will be scattered
over several parts of the bo... 阅读全帖
j****2
发帖数: 3211
37
先说我不是孕妇,我最近在做high risk OB的时候突然想到一个问题,至今没有答案。
在这里潜水一阵,发现亚洲人被怀疑是T21的比例很高,在early scan 和 anatomy
scan的时候对于是否T21有个chart,如下:
NF > 6 mm
•Shortened FL and HL
•5th digit anomaly and sandal gap
•Duodenal atresia
•Small/low ears
•Heart defects
•IUGR
•Mild pyelectasis ( 4 mm AP)
•Echogenic bowel
•Mild ventriculomegaly
Brachycephaly
•Epicanthal folds
•Flattened nasal bridge
•Small, round, low set ears
•Broad neck with extra skin
&#... 阅读全帖
m*****1
发帖数: 274
38
来自主题: NextGeneration版 - 最近想买小海马,好像电池出问题了?
最近想买小海马,好像电池出问题了?
容易冒烟,着火?
不知道各位有这个问题没,毕竟是孩子睡觉的东西,还是安全点好。
贴点amazom的回复帖子
64 of 299 people found the following review helpful
BATTERY COMPARTMENT CAUGHT FIRE
By John Ambrogi on November 12, 2012
Product Packaging: Frustration-Free PackagingColor Name: Blue Amazon
Verified Purchase
first let me say that when we purchased this toy for my 8 month old son, we
all LOVED it! He took to it immediately, and several times it truly helped
him soothe back to sleep! It was living up to all the positive review... 阅读全帖
s********8
发帖数: 161
39
来自主题: NextGeneration版 - 有妈妈了解flattening of head 吗?
宝宝现在刚3个月,出生的时候后脑勺很平,现在好一些,但是还是平,今天看了儿医
,医生坚持说要给我们预约专家看Plagiocephaly,我对这个没有什么概念。我的大儿
子现在6岁,小时候也是一直后脑勺是平的,现在大了好多了,他们的爸爸也是平。我
和医生说了可能是家族遗传,因为宝宝我一直都是让他侧睡的多,和平躺的位置关系不
大。但是医生坚持让我去看专家,说看看下一步怎么治疗。有没有妈妈了解这个问题?
专家会怎么?是不是要带头盔?谢谢
l*****e
发帖数: 676
40
来自主题: NextGeneration版 - 有妈妈了解flattening of head 吗?
同问
F***Q
发帖数: 6599
41
来自主题: NextGeneration版 - 有妈妈了解flattening of head 吗?

my 6-mo son is wearing a helmet. it has been about a month. the shape of the
head improves a lot. we were told he needs 3-6 months as my son's case is "
severe".
the mistake we made was to let him sleep on soft bedding, as insisted by my
mom, even I understood clearly it increases the risk of SIDS. obviously it
was comfortable to him, so he had less head movement. As he grew rapid in
the first two months (from 17% to 94%), the back of the head became
obviously flat.
correction in the 1st year i... 阅读全帖
f******e
发帖数: 125
42
来自主题: NextGeneration版 - 有妈妈了解flattening of head 吗?
我对付和预防平头的方法就是晚上躺着喂奶,一段时间我躺在他左边,他要吃奶头就得偏
左,睡着的时候头就是侧在左,过段时间我就躺在他右边,他的头就要朝右.交替着来.
大了可以翻来翻去了,就无所谓了.
b**s
发帖数: 908
43
来自主题: NextGeneration版 - 有妈妈了解flattening of head 吗?
楼上的方法管用。还有一个办法就是换方向睡,babies爱看有光亮的方向。
v******r
发帖数: 1630
44
来自主题: NextGeneration版 - 宝宝要不要戴头盔
4个月的宝宝脑袋后面扁平,还有点偏,医生让去戴头盔,每天要戴23个小时,6个月。
最近 new york times 出了一篇文章说头盔根本没效果 。。
“Helmets Do Little to Help Moderate Infant Skull Flattening, Study Finds”
http://well.blogs.nytimes.com/2014/05/01/helmets-do-little-to-h
非常纠结 。。 请问这里有没有宝宝戴过头盔来讲讲?
v******r
发帖数: 1630
45
来自主题: NextGeneration版 - 宝宝要不要戴头盔
4个月的宝宝脑袋后面扁平,还有点偏,医生让去戴头盔,每天要戴23个小时,6个月。
最近 new york times 出了一篇文章说头盔根本没效果 。。
“Helmets Do Little to Help Moderate Infant Skull Flattening, Study Finds”
http://well.blogs.nytimes.com/2014/05/01/helmets-do-little-to-h
非常纠结 。。 请问这里有没有宝宝戴过头盔来讲讲?
c******r
发帖数: 3778
46
来自主题: Parenting版 - 怎么预防孩子的近视眼
OVERNIGHT CORNEAL RESHAPING (OCR) — Overnight corneal reshaping (OCR) is
the process of wearing a specially designed, rigid gas-permeable (RGP)
contact lens while asleep to temporarily effect a change in the corneal
curvature resulting in clear vision during waking hours without correction.
This technique is also referred to as:
●Corneal refractive therapy (CRT)
●Overnight corneal reshaping (OCR)
●Vision shaping treatment (VST)
●Orthokeratology (Ortho-K)
The process — After wearing OCR lenses, t... 阅读全帖
G**T
发帖数: 2610
47
同意。 Devil is in the details, 说的也是这个意思。
总得来说,是个系统工程。系统工程都是hierarchical & recursive的 -- 层层次次
,蛮复杂的。但人脑,尤其懒人的脑,喜欢简化,喜欢找不用动脑的简单可执行的“原
则”。 这个诉求的本质,是要flatten a hierarchical & recursive system。
一维空间是很难表述多维空间的。 也很难理解多维空间。是以永远的争论, 永远的水
源。。。
m***q
发帖数: 82
48
☆─────────────────────────────────────☆
badcompany (bad) 于 (Tue Jun 3 14:53:42 2008) 提到:
Two reasons:
1. World-wide oil production is reaching peak.
2. In anticipation of this peak, major oil export countries are flattening
their oil exports, creating a gap of supply and demand regardless of price
increase.
Peak oil theory is nothing new and is under heated debate these days. After
reading many research materials recently, I think peak oil theory is correct
and the peak is very close. An o
j****9
发帖数: 312
49
来自主题: Stock版 - some signs of risk appetite
When yield spreads is narrowing or flatten out, that means banks that do
alot of trading can't make as much money as they used to.
g****u
发帖数: 695
50
You are asked to build a trading strategy with 60% correct ratio. This means
whatever method you give, it will be excuted a large number of times in
market in order to make sure profit with statistic significancy.
^VIX is an index so not tradable directly. There are derivatives using ^VIX
as the underlying, e.g. VIX futures and options. That would be the first
products you should look at. However, due to their lack of liquidity,
neither is suitable for a trading strategy to bet through a large n... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)