|
b*******d 发帖数: 750 | 2 哥也被问到这道题了,略有不同,给出了incoming query的distribution的曲线,qps
是几千这样子。这个system有三个api:
1)getTopTenMillionInPastHour()
2) isInTopTenMilionInPastHour()
3) notifyWhenJoinOrRemovedFromTopTenMillionInPastHour()
自己来architect系统,定义service能提供数据的精度。
我当时给的是个多台机器的架构。我觉得是旧data每秒钟都在产生(任何当前时间进行
的api call,准确来说,1小时零1秒前的数据都是旧的,对算top10millioninPastHour
没有意义),但几乎没有任何系统在一秒钟内可以purge掉这么多的旧数据,所以就要
定义一个精度。比如,semantics是“我能保证给结果是精确的,但是有个最多20分钟
的delay”,或者“我不能保证结果是100%精确的,但是我能最新的query能够实时的反
应在结果中,并且返回的结果和真值有90%的重合”。
其实就是说consistency,a... 阅读全帖 |
|
b*******d 发帖数: 750 | 3 给出了incoming entry的distribution的曲线,qps是几千这样子。这个system有三个
api:
1)getTopTenMillionInPast24Hour()
2) isInTopTenMilionInPast24Hour()
3) notifyWhenJoinOrRemovedFromTopTenMillionInPast24Hour()
自己来architect系统,定义service能提供数据的精度。
我当时给的是个多台机器的架构。我觉得是旧data每秒钟都在产生(任何当前时间进行
的api call,准确来说,1小时零1秒前的数据都是旧的,对算
top10millioninPast24Hour没有意义),但几乎没有任何系统在一秒钟内可以purge掉
这么多的旧数据,所以就要定义一个精度。比如,semantics是“我能保证给结果是精
确的,但是有个最多20分钟的delay”,或者“我不能保证结果是100%精确的,但是我
能最新的query能够实时的反应在结果中,并且返回的结果和真值有90%的重合”。
其实就是说consistency,availabi... 阅读全帖 |
|
M********u 发帖数: 42 | 4 用一个BST来keep所有的message,让所有的message order by time,任何操作的时候
都去检查最老的message是不是需要purge了。insert的时候不仅insert到bst,而且
insert到一个hashtable里。
这样addMsg是O(lgN),getMsg是O(1), getAvg()是O(1) 假设你keep一个sum和cnt的话
。主要问题是有lock contention |
|
g********e 发帖数: 1142 | 5 其实感觉面的还行。
一个deep dive以前的一个project。讲的很细致。交流不错。
然后两个coding,两个web design。并不很难。
其中一个design可能有点问题,但我觉的也不是什么大问题。是实现RSS feed的
subscription。
我一上来是big table类型的schema,但被要求用传统DB。
稍微有点生疏,但最后还是给出了个full solution,实现了要求的几个feature。这个
后来反馈说有点慢,但总体不构成rejection。
还有个design是网站的internationalization,dynamic的。包括如何purge,
production环境中如何populate新模版,新语言,stats。
最后两轮的non-technical communication上有问题。
俩人各聊了35分钟左右,一个public relationship,一个legal,漫无边际的谈。我
还感觉相谈甚欢,谁知道后来这里的反馈是:你不是很清楚我们的business model是什
么!我看不到你对姆们产品的passion!!我想了想,的确... 阅读全帖 |
|
n********e 发帖数: 41 | 6 楼主 看到 你 isDiffByOne 函数就知道你必然要超时
Leetcode免费给你用 就别挑剔了。凡事要先从自身找问题
你那个测试不是大数据
真正的大数据在这里:
start = "nanny";
end = "aloud";
String[] d = {"ricky","grind","cubic","panic","lover","farce","gofer
","sales","flint","omens","lipid","briny","cloth","anted","slime","oaten","
harsh","touts","stoop","cabal","lazed","elton","skunk","nicer","pesky","
kusch","bused","kinda","tunis","enjoy","aches","prowl","babar","rooms","
burst","slush","pines","urine","pinky","bayed","mania","light","flare","
wares","wom... 阅读全帖 |
|
s********x 发帖数: 81 | 7 这是网上看到的别人的解答。
http://www.careercup.com/question?id=4827656025538560
Use a ring buffer (circular queue) of type Message of size 5000*60*10 which
is 3000000B or 3MB. The memory footprint will be 3MB*sizeof(Message) so that
gives us upper limit of 100MB (string ticker are no more than 4B and fixed
length for int64/double).
Maintain a rolling sum (type double) and every time adding a stock price,
add it to sum and subtract the last purged value.
Simply return sum/Total entries |
|
o**********e 发帖数: 18403 | 8 【 以下文字转载自 Seattle 讨论区 】
发信人: onetiemyshoe (onetiemyshoe), 信区: Seattle
标 题: 霸凌algorithm和反霸凌:职场必读
发信站: BBS 未名空间站 (Sat Nov 1 10:24:06 2014, 美东)
继Brahmin Tree algorithm
http://www.mitbbs.com/article_t/Seattle/33101521.html
以后,我再来总结一下霸凌algorithm.
首先霸凌algorithm:
柿子捡软的捏。然后捡稍软的捏。 最后收拾硬柿子。
估计那是硬柿子吓的硬不起来了。
就这么简单。 老中精英在IT职场几乎全军覆没
也是这样。
举例:
1. 最惨痛的教训是犹太人总结的:
“First they came …” is a famous statement and provocative poem attributed
to pastor Martin Niemöller (1892–1984) about the cowardice of German
... 阅读全帖 |
|
|
c***z 发帖数: 6348 | 9 节选,关于culture
Workplace cultures
I mentioned rank and tough cultures above, so let me get into more detail of
what those are. In general, an organization is going to evaluate its
individuals based on three core traits:
subordinacy: does this person put the goals of the organization (or, at
least, his immediate team and supervisor) above her own?
dedication: will she do unpleasant work, or large amounts of work, in order
to succeed?
strategy: does she know what is worth working on, and direct her ... 阅读全帖 |
|
c***z 发帖数: 6348 | 10 节选,关于culture
Workplace cultures
I mentioned rank and tough cultures above, so let me get into more detail of
what those are. In general, an organization is going to evaluate its
individuals based on three core traits:
subordinacy: does this person put the goals of the organization (or, at
least, his immediate team and supervisor) above her own?
dedication: will she do unpleasant work, or large amounts of work, in order
to succeed?
strategy: does she know what is worth working on, and direct her ... 阅读全帖 |
|
g*****g 发帖数: 34805 | 11 Cassandra, all you need is two tables.
One looks like
id1 -> (a11,a12,a13), (b11,b12,b13)
Another is an index looking like
axx -> id1, id2 etc.
TTL is built in so you don't need do nothing on 7 days purge. |
|
b**********5 发帖数: 7881 | 12 for the people who work at twitter, listen to your fucking users! I am a
long time twitter periscope user, spend a ton of time on it...
now they have started banning the so called "alt right" people left and
right! None of them have tweeted anything remotely offensive except being
against the liberal left. u fucking log on to twitter and realize oops, a
lot of people u follow all got banned at the same time!
it's called post election purge, and the only feed i will have left in the
end are cele... 阅读全帖 |
|
c******f 发帖数: 243 | 13 purge / expire 的function呢? |
|
S*******C 发帖数: 822 | 14 leetcode上没要求
expire是要定期清除expired keys
purge是要干啥? |
|
b**********5 发帖数: 7881 | 15 我以前在Internet公司干活, 要个user acess, 起码要有extra 一个人approve。。
。
Twitter没有这种policy?! 不太可能吧。。。
我觉得Twitter在试 mass purging of conservative IDs.... |
|
b**********5 发帖数: 7881 | 16 我以前在Internet公司干活, 要个user acess, 起码要有extra 一个人approve。。
。
Twitter没有这种policy?! 不太可能吧。。。
我觉得Twitter在试 mass purging of conservative IDs.... |
|
n**********e 发帖数: 75 | 17 【 以下文字转载自 Database 讨论区 】
发信人: notencourage (Not Encouraged), 信区: Database
标 题: Senior Database Developer Position for Hedge Fund
发信站: BBS 未名空间站 (Fri Oct 16 11:52:58 2015, 美东)
替朋友发的。有兴趣的请用dice申请
https://www.dice.com/jobs/detail/Senior-Database-Developer-Citadel-L.L.C.-
Chicago-IL-60603/10120369/254107
或发CV给 [email protected]
/* */
Job Description:
Citadel L.L.C., Chicago, IL
Title: Senior Database Developer
Summary:
The Front Office Core Technology Database group works closely with other
F... 阅读全帖 |
|
B********t 发帖数: 65 | 18 it is difficult to give accurate estimate even for experienced contractor
not enough cooling does not always a result of leaking system
in my case, the previous owner/agent/service person overchaged the system
and cause the compressor to shutdown. There are also blockage in the copper
line.
The contractor spend almost 3 hours to find the problem, purge the line and
recovery part of the HFC from the system. (you can ask their hourly rate)
I was lucky to have home warranty cover the repair cost. |
|
m***y 发帖数: 14763 | 19 to listen to the same music. So, consider yourselves lucky if you didn't
work your bottom off for 18 years to get the same treat.
OK, seriously, you can check all the loose parts around the radiator. Make
sure everything fixated.
And also to New England house owners, this might be your last chance this
year to purge the air. The excessive air doesn't only make noises, but also
reduces the heating efficiency. |
|
M********I 发帖数: 848 | 20 What is PEX?
PEX is cross-linked polyethylene. Through one of several processes, links
between polyethylene molecules are formed to create bridges (thus the term "
cross-linked). This resulting material is more durable under temperature
extremes, chemical attack, and better resists creep deformation, making PEX
an excellent material for hot water and other applications.
How long has PEX been used?
PEX was developed in the 1960s. PEX tubing has been in use in many European
countries for plumbing,... 阅读全帖 |
|
c*u 发帖数: 916 | 21 今天去heating supply抱回来一个expansion tank,一个venting valve,卖东西的人
要我顺便把pressure check valve也买了,一共花了将近70元。减压阀不知道为什么和
back-flow preventor竟然是搭配卖的,不分开卖,共60多元,所以暂时就没买。店小
二给我一个warning,说搞好后要purge system,不知道怎么搞大冬天最好不要动,或
者请plumber,是这样的么?
回家果然那个expansion tank转不下来了,好像是彻底绣死了,上了WD 40也没用,如
果锯掉重新焊需要什么设备?我看Home depot卖的propane torch好像只能用来焊小管
子,1 inch粗的管子能弄么? |
|
i***e 发帖数: 9429 | 22
下一次得看看清楚啊,还好你提供了full serial #. 不然又是个谜。
你的机子正确型号是PH10JA024000AEAA。那台是2ton的小机器,还是值得修理的。coil
完全没有你想象的那么贵。Warranty已过了。
Carrier Part#:321692-7052
你的牌子是Payne,Carrier属下的另外一个品牌。
换Coil的同时,会换过滤器,换过滤器前,Contractor 会以你这种情况双向Purging
Lineset,甚至会清洗orifice 或TXV, 完全不用担心阻塞。 如果是家用冰箱,类似你
这样情况,可能需要担心。说明书是PDF文件,但不知道怎么上上来。 |
|
F***Q 发帖数: 6599 | 23
反正系统都是自动purge过期的文章,灌那么多水,最后什么也没有留下来,有什么乐
趣可言呢? |
|
p*******h 发帖数: 184 | 24 Here they are: 10 of my best tips for keeping the house “clean enough”:
I am pretty much constantly in motion. If I’m on my feet, I’m tidying. I
never leave a room without making it better than I found it (that can be as
simple as taking an item that doesn’t belong in that room out and moving it
CLOSER to the room it belongs in, LOL) I am on the computer a lot because
of my job, but I build lots of little cleaning breaks into my day–five
minutes here and five minutes there adds up to a much clea... 阅读全帖 |
|
s******t 发帖数: 1956 | 25 看看美国人给习大大的感谢信。
Dear President Xi Jinping:
This is a thank-you note from California.
Thank you, first off, for sustaining our neighborhoods through these last
difficult years. Thank you for keeping wealthy Chinese so nervous about your
purges of political opponents — oops, your anticorruption campaigns —
that they are buying real estate all over California. More than half of all
U.S. home purchases by Chinese buyers are in the Golden State. In the San
Gabriel Valley, where I live, Chinese arrival... 阅读全帖 |
|
j********d 发帖数: 157 | 26 我要换空调(暖气+致冷空调,在宾州),找contractor。他给了个估价并列了机型和
其他一些安装的细节,没提:
Perform a nitrogen purge while brazing new copper line set
perform a triple vacuum to 400 microns on outdoor ac unit
我google搜索看很多网站讲装新空调应该做这二步,就问contractor他们的安装程序中
是否包括这二步。现等contractor回电邮,请问:
这二步是装新空调过程中很关键吗?
如果这个contractor不做这二步,新空调明年夏天运行后会有什么问题吗?
如果做,但另加费用,大约多少钱合理?
多谢高人答疑! |
|
e*******9 发帖数: 261 | 27 thanks a lot!!
training in breast cancer, probably all of the previous comments, because
not a single one mentioned one of the most important pieces of information:
its histological type.
aggressive but rarely metastasize until very late. It can be quite
accurately diagnosed by mammogram. Therefore the surgery should not proceed
to extensive lymph node purge unless cryosection histology says otherwise.
medullary carcinoma (until very late) is how complete the resection is. It
appears your mom r |
|
p***e 发帖数: 1257 | 28 【 以下文字转载自 MedicalCareer 讨论区 】
发信人: purge (我说你好,你说打扰), 信区: MedicalCareer
标 题: 甲减了,心理难过,几个问题
发信站: BBS 未名空间站 (Fri May 6 11:22:52 2011, 美东)
最近刚刚检查出甲减,挺难过的。听说甲减都是甲亢发展成的,可我没得过甲亢(或者
不知道?),直接甲减了。tsh指数是5,医生直接开了激素药,本来就是让我pick up
处方,什么都不交代,我自己约了一下,才面谈。也没有做进一步检查。自己上网查,
好像一辈子都要吃激素药。又听说激素药服用不当,还会恶化。在我的强烈要求下,医
生准备给开referal to specialist,听说预约后也要很长时间。自己在网上查了下,好
像甲减影响生育,对将来孩子健康也不好.问医生,她说没关系,怀孕期间继续吃药就行了
.问这个病产生的原因,说很多,但是也不帮着分析,看有什么可能性,和改进的地方.
因为我的指数高的不多,所以我不知道该不该开始喝药,一旦喝药是不是就一辈子要喝了
.还有怀孕的事情,医生说得对么?另外,我饮食上要注意什么?谢... 阅读全帖 |
|
n*******y 发帖数: 3337 | 29 发信人: newjersey (NJ furniture dealer), 信区: EasyMoney
标 题: Re: chase关卡
发信站: BBS 未名空间站 (Fri Apr 4 11:53:35 2014, 美东)
Yesterday, 3:03 pm #182
thehawk75
Join Date: May 2008
Programs: AA GLD 1.86MM, SPG GLD, PC PLT, HH DMD
Posts: 1,874
So, it seems Chase is purging I guess?
All my Chase CC's are now closed.
Have hardly done any MS with chase either in the last 8 months or so.
Just happened today, so, I have no other details.
UR accounts still seemed to be working, so, I've made all transfer... 阅读全帖 |
|
n*******y 发帖数: 3337 | 30 发信人: newjersey (NJ furniture dealer), 信区: EasyMoney
标 题: Re: chase关卡
发信站: BBS 未名空间站 (Fri Apr 4 11:55:41 2014, 美东)
Yesterday, 3:52 pm #191
thehawk75
Join Date: May 2008
Programs: AA GLD 1.86MM, SPG GLD, PC PLT, HH DMD
Posts: 1,874
What irks me on this whole thing is, aside for a few GC's at OM during their
promotions (when I could even find any on the shelves), is I haven't even
done any AOR with Chase in nearly 2 years. I've actually paid AF on the
Marriott, IHG, IB/IP cards too.
... 阅读全帖 |
|
u**u 发帖数: 252 | 31 是有效期吗?pampers的sensitive swaddler,谢谢回答 |
|
l***n 发帖数: 731 | 32 【 以下文字转载自 Faculty 讨论区 】
发信人: Morphin (莫非-白衣“追鱼”郎), 信区: Faculty
标 题: 大伙儿等着失业海归吧,新消息,budget cut nation wide!!! (转载)
发信站: BBS 未名空间站 (Mon Feb 14 15:03:51 2011, 美东)
发信人: bittergourd (苦瓜), 信区: Biology
标 题: 大伙儿等着失业海归吧,新消息,budget cut nation wide!!!
发信站: BBS 未名空间站 (Mon Feb 14 14:32:48 2011, 美东)
收到一封BPS的信,关于FY 2011 funding package, H.R. 1
NIH: -$1.6 B
NSF: -$359.5 M
DOE: -$886 M
我老估计,就现在巴马这个熊样,这个法案八成是要通过了。想找珀斯到,老板没钱。
想找发考题,申不到方鼎。一堆生
物wsn/nv们,包括老美自己,涌到已经哀鸿遍野的industry,更没H1的机会了。依我看
,趁早联系海龟的退路吧。
Impact of ... 阅读全帖 |
|
发帖数: 1 | 33 【 以下文字转载自 Military 讨论区 】
发信人: qwgg (no nickname), 信区: Military
标 题: 研究发现中国每年空气污染死160万
发信站: BBS 未名空间站 (Tue May 8 14:23:56 2018, 美东)
Study Links Polluted Air in China to 1.6 Million Deaths a Year
https://www.nytimes.com/2015/08/14/world/asia/study-links-polluted-air-in-
china-to-1-6-million-deaths-a-year.html
BEIJING — Outdoor air pollution contributes to the deaths of an estimated 1
.6 million people in China every year, or about 4,400 people a day,
according to a newly released scientific pape... 阅读全帖 |
|
K***l 发帖数: 724 | 34 Private report: US added 300,000 jobs in December
(AP) – 45 minutes ago
NEW YORK (AP) — Companies added nearly 300,000 jobs in December, according
to an unofficial count by a private payroll firm — more than in any month
in the past decade. The news raised hopes that the government's official
report Friday on last month's job creation could be a blockbuster.
While there were reasons to doubt the numbers, the report from Automatic
Data Processing, and another showing strength in the nation's serv... 阅读全帖 |
|
k********8 发帖数: 7948 | 35 http://www.zerohedge.com/news/guest-post-keynesian-solutions-af
Submitted by Jim Quinn Of The Burning Platform
Keynesian Solutions - After Total Failure -Try, Try Again
“Lenin is said to have declared that the best way to destroy the capitalist
system was to debauch the currency. By a continuing process of inflation,
governments can confiscate, secretly and unobserved, an important part of
the wealth of their citizens. By this method they not only confiscate, but
they confiscate arbitrarily; and... 阅读全帖 |
|
r******9 发帖数: 2632 | 36 It's been a good 6-month ride.
Hubris is inevitable. Now it's starting to be purged. |
|
b*****s 发帖数: 1475 | 37 【 以下文字转载自 WBCenter 讨论区 】
发信人: mitbbscheck (一夫当关万夫莫开), 信区: WBCenter
标 题: Re: brokers 申请代发包子
发信站: BBS 未名空间站 (Mon Aug 6 02:41:10 2012, 美东)
"
【Stock】
brokers Aug 2 . ● Baozi distribution !!!"
成功奖励 10 伪币的用户: TSC, pray2008, davidibt, QWQ, ihappie, party,
testtest123, QQS, gaea, RWR, bagua, Hattrick, gcf108, ssjr, MaoZhuxi, armer,
Funding, meerkat, umkcmoneyman, lotoffun, yoyo62, fac, iplai, antholy,
lovefreedom, robots, xixi77, nescience, camping, bbcool, kr, IGS, cplus2009,
Zeolite, laoer, oc... 阅读全帖 |
|
p***e 发帖数: 1257 | 38 【 以下文字转载自 come_back_my_money 俱乐部 】
发信人: purge (我说你好,你说打扰), 信区: come_back_my_money
标 题: 大家帮我看下,和a股相关的还可以入么?
发信站: BBS 未名空间站 (Fri Sep 7 10:33:09 2012, 美东)
昨天是不是a 股大涨?fxi,caf还可以入么?谢谢 |
|
k********8 发帖数: 7948 | 39 参见最新好莱坞大片:The Purge
black.
.
not
aren |
|
l*********m 发帖数: 16971 | 40 What typically happens in these situations is that the victim company has to
massively dilute its share structure from the constant paying of the
monthly burn rate with money received from the selling of “real” shares at
artificially low levels. Then the goal of the naked short sellers is to
point out to the investors, usually via paid “Internet bashers”, that with
the, let’s say, 50 billion shares currently issued and outstanding, that
this lousy company is not worth the $5 million market cap i... 阅读全帖 |
|
x****9 发帖数: 2668 | 41 要不搞一日 The Purge
现在没有版主,无政府状态 |
|
I***a 发帖数: 13467 | 42 深表赞同,
大家搞一次,或没有版主的空档搞一次,
尽情相互吐口水,版主上来后,个个都是一等良民 |
|
|
x****9 发帖数: 2668 | 44 关键是,只搞一天,不要天天搞。
这个我不是天天在搞? |
|
|
w**k 发帖数: 6722 | 46 粪坑,你天天搞怎么行呢。
天天搞,那不是择日清算,是文化大革命! |
|
|
|
x****9 发帖数: 2668 | 49 哈哈。。。
粪坑,你天天搞怎么行呢。天天搞,那不是择日清算,是文化大革命! |
|
i******r 发帖数: 373 | 50 better not do. Your employer will find a way to purge you. This illness is
regarded as a serious problem generally in the company. |
|