由买买提看人间百态

topics

全部话题 - 话题: discarded
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
s*****n
发帖数: 5488
1
开始随机取k点,加入heap.建立bounding box. MBB(k)
性质:MBB(k) monotonically shrinks.
filering: if p(k) is not in MBB(k), discard.
这个计算会越来越快。因为MBB越来越小。
什么组,要考spatial index方面的知识?
c********t
发帖数: 5706
2
来自主题: JobHunting版 - binary tree的最长root leaf path
how about using post-order? for each node, discard shorter children path,
save the longer one.
time: O(n)
space: O(length of longest path)

nodes
Q*******e
发帖数: 939
3
gcc 报告warning
str_reverse2.c: In function `string_reverse2':
str_reverse2.c:7: warning: initialization discards qualifiers from pointer
target type
c***p
发帖数: 221
4
Two's complement 居多。比如: x86, amd64, sparc都用 Two's complement.
http://en.wikipedia.org/wiki/Two's_complement
The two's-complement system has the advantage that the fundamental
arithmetic operations of addition, subtraction, and multiplication are
identical to those for unsigned binary numbers (as long as the inputs are
represented in the same number of bits and any overflow beyond those bits is
discarded from the result). This property makes the system both simpler to
implement and capable of eas... 阅读全帖
s******c
发帖数: 99
5
来自主题: JobHunting版 - 用rand5()产生rand7()
不只是整数的问题。你用6*rand5()这样只能call rand5一次,rand5() 一定要call两
次,因为7比5大,就比如你用1个骰子不能产生0-7之间的随机数一样
其实书上的算法这样写比较抽象,实际情况是这样的,你call 2次rand5(),有如下组
合,他们分别对应相对的结果,每三个一组
0 0
0 1 ->0
0 2
--------------
0 3
0 4 ->1
1 0
--------------
1 1
1 2
1 3 ->2
--------------
1 4
2 0 ->3
2 1
--------------
2 2
2 3 ->4
2 4
--------------
3 0
3 1 ->5
3 2
--------------
3 3
3 4 ->6
4 0
--------------
4 1
4 2 discard
4 3
4 4
n*******2
发帖数: 89
6
来自主题: JobHunting版 - google interview prep -SRE
            &#
160;            
      
INTERVIEW PREPARATION
GOOGLE.COM ENGINEERING
The Google.com Engineering Interview process will&#
160;focus on areas of expertise and ability&#
160;which are
of interest to us, and is likely to 
pay... 阅读全帖
s*******r
发帖数: 2697
7
来自主题: JobHunting版 - 发几个面经(6) Twitter 电面+onsite
stock price是real market的data,有交易价格变化才会更新数据,可以假设更新时间
单位是在秒这个数量级的
具体处理只需要保存有可能是Max和Min value的数据 其他update的时候可以discard掉
最坏情况下确实需要保存12个月内所有的数据
f*********m
发帖数: 726
8
来自主题: JobHunting版 - 发几个面经(6) Twitter 电面+onsite
能避免用这个12个月的数据数组吗?
我觉得每秒都需要更新吧,至少每秒要删掉超过12个月的数据。
Max和Min value的数据需要两个变量,同时还要记录这两个变量在12个月数据数组中的
位置,若他们中的任何一个被dsicard了,就的扫描整个数组,找到新的Max和Min
value的,对吧?平均来说 amortized time可能还是O(1)。
或者用两个stack,分别装每个时刻的Max和Min value,Max和Min value被从12个月的
数组discard后就从stack pop掉。
s*******r
发帖数: 2697
9
来自主题: JobHunting版 - 发几个面经(6) Twitter 电面+onsite
数据是实时的stream数据 不是存在数组中的 如何存储需要自己设计数据结构
这个应该是开放题目 删数据也可以passive mode,比如在push新数据或者query出来过
时数据的时候再discard
g*********e
发帖数: 14401
10
来自主题: JobHunting版 - 从rand5 求rand7

5rand5+rand5 可以产生一个0-24的随机数 equally distributed
然后取前面21个 0/1/2->0 3/4/5->1 ...
22-24的话discard 再算一次
r*********n
发帖数: 4553
11
来自主题: JobHunting版 - 请教一个IT题目
Test B()不会生成一个叫B,类型为Test的变量
这个statement是一个function call,the called function is called B which
takes no argument and return a Test object, which is subsequently discarded
f*******4
发帖数: 64
12
手里14张牌,牌面A~N,可能有重复.出牌规则是:
* 2,3,4张同样牌面
* 3张顺子
* A可以作任何牌使用
实现函数,返回全出掉的最少次数:
int Discard(const string &s); // assert(s.size()==14), 无法出掉返回-1
如"A,B,C,D,D,D,D,E,F,G,H,I,J,N"一种出法是
[B,C,D] [D,D,D] [E,F,G] [H,I,J] [A,N]
s***e
发帖数: 403
13
来自主题: JobHunting版 - 分享NVIDIA的第一轮面试题
不对。
因为theCar.display()其实会编译成
__classTrackedObject_display(TrackedObject* this);
而你传入的是const指针。这样你就discard qualifier了。

调用
f**********t
发帖数: 1001
14
最近在练习用Tree Iterator实现Tree的非递归遍历。想练习一下begin()/end()/++的
版本。code如下:
结果在operator !=那里出了问题:
Line 45: passing ‘const TreeIterator’ as ‘this’ argument of ‘TreeNode*
TreeIterator::getRoot()’ discards qualifiers [-fpermissive]
求教这个怎么fix? 多谢啦 =)
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class TreeIterator {
stack s;
TreeNode *root_;
public:
TreeN... 阅读全帖
j*******g
发帖数: 79
15
来自主题: JobHunting版 - 看来恨三哥的人不在少数
http://www.petition2congress.com/7637/abolish-h1b-visa-program/
There is no shortage of American Tech Workers. They have been discarded by
corporate American and those still working keep silent in fear of losing
their jobs. Just drive around Seattle, Portland, San Jose, Austin, etc.
around the tech areas. Apartments filled with Indians. The last contract I
had I was the one of 2 Americans among 500 in the building and the Indian VP
couldn't wait to replace me when he found someone who would take... 阅读全帖
g****c
发帖数: 11
16
来自主题: JobHunting版 - Linkedin onsite 面经
2 需要支持put, get, 以及处理在文件系统写满的情况下重新写入另外一个文件系统。
什么样的meta data需要存储在文件系统里
3 三个operation需要constant time. 除了这三个api以外,需要一个utility
function 'discard()', 考虑怎样将过期的integer淘汰掉。
4 就是rss reader。我到现在不知道这题应该是怎么一个思路,求高人指点。
j*****8
发帖数: 3635
17
来自主题: JobHunting版 - G家LA office电面
对,那个国女的是对的
本来就是k size heap,每次先和peek 比较,然后再插入或者discard
w**z
发帖数: 8232
18
http://www.quora.com/What-is-the-worst-part-about-working-at-Go
最后一句是亮点:
You watch many of your coworkers get weird and dependent at Google, and
realize the Google lifestyle has made them basically unemployable anywhere
else. You secretly start wondering if you could cut it on the outside too.
Katy Levinson
Katy Levinson, Former SWE, Infrastructure
74.8k Views • Upvoted by Richard Russell, Ex-Googler ('06-'12) •
Mehmet Fidanboylu, L6 developer @ Google • Piaw Na, Worked at Goog... 阅读全帖
d*******s
发帖数: 65
19
1. git rebase --abort // discard whatever you have done in rebase
2. git update remote
3. git rebase origin/master // assume you are on master branch
4. git log
5. git revert
b**********5
发帖数: 7881
20
来自主题: JobHunting版 - 无限的假期到底是什么?
Tech startups love millennials. Tasty, tasty millennials who get underpaid,
overworked, churned up and turned into nourishment for venture capitalists.
Millennials are the Soylent Green of the tech world.
As each batch gets mashed up, there’s a long line of new hires eager to be
made into the next meal for the execs and their billionaire backers, as tech
survivor Dan Lyons shows in a scathingly funny new book, “Disrupted: My
Misadventure in the Start-Up Bubble” (Hachette Books).
Lyons became a s... 阅读全帖
t**s
发帖数: 1393
21
来自主题: Living版 - 微波炉问题
I have the same problem. Dunno why, just discarded it:)
d****t
发帖数: 372
22
来自主题: Living版 - 父母领美国福利
这个教授本人是个jew, 却是个反华先锋! 大家应该反击它才对!
http://www.arthurhu.com/index/matloff.htm
Norman Matloff, The Hatchet Man of Asian Immigration
(Arthur Hu's Norm Matloff fan site) | New additions
Arthur Hu's Norman Matloff page
http://www.arthurhu.com/index/matloff.htm
2 Quick Intros to Matloff / Immigration Issues
Asian Focus April 1998: The Chinese Must Go! Matloff's Myth of a Programmer
Shortage
George Nichol's Other Matloff Fan Site (easier to navigate than this one!)
Where Matloff's been Published
How to C... 阅读全帖
M*****e
发帖数: 279
23
来自主题: Living版 - Costco 可以price match 吗?
Costco used to give you the difference back to you if its given product is
on sale later, but Costco does not do that any more. Fortunately, you can
buy the discounted same product and return it with your old receipt. Never
discard your old Costco receipt. For almost all products at Costco, you can
return them any time.
m***y
发帖数: 14763
24
来自主题: Living版 - CNN: Sinkhole swallows Florida man
Geez, it's true.
As you might have noticed, there are a lot of urban legends involving a "
Florida man". And people would discard it as yet another joke if they heard
anything happened to a "Florida man".
b*****m
发帖数: 36
25
好像因为用的洗衣剂hebleach之类造成土地酸碱失衡,所以有人建议先测试土地然后加
lime等。我在网上找的
1
Prune overhanging branches that prevent sunlight from reaching your yard. If
possible, remove and transplant trees and shrubs that block the sun.
2
Remove moss manually with a flail-type dethatching tool in mid-March to
through April--when moss is most vigorous--and dispose of it.
Sponsored Links
Dell 4th of July Sale
Save Over 30% on Laptops with Intel® Core™. Offer Ends Soon!
www.dell.com/Laptops
3
Attack remaining moss with ... 阅读全帖
F***Q
发帖数: 6599
26
来自主题: Living版 - 汽车电池充电器

battery
a car battery is constantly recharged by the engine. people discard the old
battery because it can no longer be recharged. even you can get a charger,
it won't recharge the battery!
f******e
发帖数: 921
27
If it is not your name, why you care it? Just check your own credit report,
if there is no latepay record, just discard it, It is not YOU.
n*******n
发帖数: 153
28
有遇到这种情况的吗?今天莫名其妙收到银行寄来一张新的debit卡,新卡号,原来的
那张卡我用着好好的呢并没有要新卡呀,打CS问,说是extra的卡,如果我不想用呢就
留着,不想留着呢就discard掉,又说可能是哪个representative accidently给我
order了一张,问是哪个representative叫什么名字又说没记录,唉郁闷呢,怎么觉得
自己的帐户不受自己控制的感觉呢
S********5
发帖数: 753
29
来自主题: Money版 - amex prepaid的$25有人拿到了吗
今早开信箱就看到american express的信,上面写的gift for you, do not discard,
打开一看果然是25的gift card.
m*****a
发帖数: 2609
30
sign up the free trial of those 3-beaura credit monitor program. If nothing
special than just discard whatever creditkarma says.
p******s
发帖数: 1155
31
They like you:-)
How do you claim your free points? I got one and discarded it.
c****g
发帖数: 37081
32
details? first purchase maybe ok. otherwise discard.
s*********9
发帖数: 287
33
discard it
m****m
发帖数: 258
34
今天收到citi aadvantage platinum select的卡
但是我从来都没有申请过
我打电话去 对方说是我现在有一个 aadvantage visa的信用卡 这个新寄给我的是一个
upgraded card for with features (是一个新的credit card number)是他们issue
给有较好表现的持卡人的
问题来了
这样没有客户允许的情况下可以直接issue 所谓的 a card of upgraded version么?
这样会有hard pull不(虽然接电话的女的很确定说不会)?
现在还没有activate 不过在我citi account里已经有这个卡的存在,我不激活而是要
求把这个卡discard掉 会在我的credit history里多算一张卡 而让我的平均持卡时间
变短?最近要贷款 所以比较在乎这些
另外也跟她确认了 这个卡没有associated 50K或者30K miles的offer 她也不能给我加
上去
a***4
发帖数: 1112
35
来自主题: Money版 - 无耻左臂政客非要搞细分
无耻左臂政客非要搞细分
转自微信AnnyZhang
帮帮忙,咱们同气连根,互相帮助。康州搞了个教育禁止细分法;细分的马上搞了一个
医疗细分。两个都死了以后,他们把医疗细分偷偷塞入另一个表面看似毫无关系的法。
蒙混过关出了委员会。现在要投票了。大家帮帮忙[Salute] Please sign the
petition to DISCARD HB5415, which took texts from
the strongly opposed dead CT bill SB465.
We own our data. This violate HIPAA law and patient privacy rights. #
DiscardHB5415 #OwnYourData
M*****8
发帖数: 17722
36
来自主题: Money版 - Re: 王垠去了intel (转载)
【 以下文字转载自 Military 讨论区 】
发信人: MB80528 (肥猫(Contrarian)[食MM而肥]), 信区: Military
标 题: Re: 王垠去了intel
发信站: BBS 未名空间站 (Sat Sep 8 16:20:06 2018, 美东)
The fledgling world of AI hedge funds is claiming one of its first
casualties.
Sentient Investment Management is notifying investors of plans to liquidate
the hedge fund it started in late 2016, according to people with knowledge
of the situation. The fund managed less than $100 million and hasn’t made
money this year after gaining 4 percent in 2017, one o... 阅读全帖
t***1
发帖数: 64
37
我去上课的时候,instroctor说的AAP并不鼓励。
网上的文章说。 AAP鼓励捐出,除非家里有大的孩子已经有这方面的问题,需要用,才
用私人存的方式。
Release: January 2, 2007, 12:01 am (ET)
CHICAGO - Cord blood stem cell banks can provide an invaluable service to
those afflicted with leukemia and immune disorders. The American Academy of
Pediatrics (AAP) encourages families to donate their newborn’s cord blood,
which is normally discarded at birth, to cord blood banks (if accessible in
their area) for use by other individuals in need. Storing cord blood at
private
x**a
发帖数: 152
38
来自主题: NextGeneration版 - pump's tube is dirty
No wash. I read a handbook from a lactation consultant and it says never
wash the tubing since the moisture will contaminate your milk.
You definitely should discard the current one. yes, stuff inside the tubing
does not contact your milk, but the air is from the tubing to your bottle.
Are you feeling safe to breathe air from a tube with 霉菌?
I called Medela customer service and they said they will send me a new pair
very soon (free). You can do that, too.
Since your baby is doing good, no need t
y**c
发帖数: 133
39
来自主题: NextGeneration版 - 姓王男孩名字(有包子)
"用夏变夷", discard "夏", and keep "夷"??????
if you want use "用夏变夷", the name should be **夏. not the other way
r*f
发帖数: 39119
40
来自主题: NextGeneration版 - 如果car seat 没有base
donate or discard
y****1
发帖数: 213
41
来自主题: NextGeneration版 - 有在COSTCO买过similac的吗?
I've been buying the 34oc's at COSTO........OMG.....how to certify the codes
? we've discard all bottles.
g*****1
发帖数: 998
42
来自主题: NextGeneration版 - 小海马和那个白色的小羊,哪个更好?
刚看到说3岁以下不让用阿。。
http://www.amazon.com/Fisher-Price-Wonders-Soothe-Seahorse/dp/B0028QKPMW/ref=pd_sim_t_1
CHOKING HAZARD -- Toy contains a marble. Not for children under 3 yrs.
CHOKING HAZARD -- Children under 8 yrs. can choke or suffocate on uninflated
or broken balloons. Adult supervision required. Keep uninflated balloons
from children. Discard broken balloons at once.
CHOKING HAZARD -- Small parts. Not for children under 3 yrs.
CHOKING HAZARD -- Toy contains a small ball. Not for children under... 阅读全帖
l****b
发帖数: 161
43
来自主题: NextGeneration版 - 提醒一下cord blood donation
the way I see it,
If I donate my child's cord blood to a public bank, it's because I'm
convinced that I won't be using it in the future and by donating it to a
public bank, I have a chance to help other people. If one doesn't have this
kind of conviction, saving the blood in a private bank buys peace of mind.
Although whether there is such peace is debatable.
Public bank has low success rate because they have very tight criteria,
which is both good and bad. Good is that the stuff in the bank i... 阅读全帖
s***y
发帖数: 3299
44
来自主题: NextGeneration版 - 请问, 有给婴幼儿吃牛初乳的么
too much hormone in it, not suitable for both adults and kids. it's
discarded in US but treasured in China as a money making opportunity.
s***y
发帖数: 3299
45
来自主题: NextGeneration版 - 请问, 有给婴幼儿吃牛初乳的么
too much hormone in it, not suitable for both adults and kids. it's
discarded in US but treasured in China as a money making opportunity.
m**S
发帖数: 96
46
来自主题: NextGeneration版 - 关于母乳喂养看牙医的问题
my friend asked her kid's pediatrician about this, the doctor answered:
1. feed baby first before your appointment (and/or pump some milk out to
save for baby's next feeding);
2. it's okay to get local anesthetics (regular injection) at dentist's
office, but pump out milk to discard/to throw out at the next feeding time
(when you get home);
because anesthetics you receive from dental treatment will only circulate
in mom's body for few hours, so just skip one feeding (meaning don't
breast feed in... 阅读全帖
p*********s
发帖数: 1229
47
来自主题: NextGeneration版 - 宝宝没喝完的奶还能喂嘛?
MM可否注明出处?
我查的结果是如果没喝完的奶,还可以放1-2小时,然后必须扔掉。
Is it safe to save your breastmilk after offering to baby?
There has only been one small study of breastmilk that has been stored,
warmed and partially consumed by babies. It suggests that it is safe to feed
previously stored milk up to one or two hours after it has been prepared.
Any unused portion should then be discarded.
http://www.ivillage.com/breastmilk-storage-101-answers-your-7-m
p*********s
发帖数: 1229
48
来自主题: NextGeneration版 - 宝宝没喝完的奶还能喂嘛?
MM可否注明出处?
我查的结果是如果没喝完的奶,还可以放1-2小时,然后必须扔掉。
Is it safe to save your breastmilk after offering to baby?
There has only been one small study of breastmilk that has been stored,
warmed and partially consumed by babies. It suggests that it is safe to feed
previously stored milk up to one or two hours after it has been prepared.
Any unused portion should then be discarded.
http://www.ivillage.com/breastmilk-storage-101-answers-your-7-m
m**y
发帖数: 18546
49
来自主题: NextGeneration版 - 宝宝喝剩下的奶下次还可以继续喝吗?
link: http://www.babycenter.com/404_can-i-mix-breast-milk-and-
formula_8883.bc
"Formula from a bottle that your baby has drunk from must be discarded
within an hour of preparation. Breast milk, on the other hand, will
"keep," refrigerated, for a number of hours in a bottle that's been fed."
f**l
发帖数: 433
50
we have all three of them.
diaper disposal: seals the odors and save your time to discard the trash,
expecially at night
rocking chair is a life saver for me. You have not experienced how much time
you need to put your child into sleep, expecailly when the child is sick or
teething or something else. I spent a lot of time nurse him/pump milk on
the rocking chair and rock him to sleep when he was sick. Two months in a
row I slept on the chair holding my son when he was having 8 teeth breaking
thr... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)