由买买提看人间百态

topics

全部话题 - 话题: erased
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
w*******y
发帖数: 60932
1
Hello all!
A few days ago Sharpie presented a new type of erasable pens, and they
called it "Liquid Pencil". It's similar to the Paper Mate's concept, but
this uses liquid graphite instead of that erasable ink, so during one day it
can be erased just like pencil-marks.
This pencil can be found at OfficeDepot.com but I've found it at Amazon a
bit cheaper, $2.39 (List Price: $2.96, Save: $0.57 (19%))
Link to the Sharpie Product at Amazon:
http://www.amazon.com/Sharpie-Liquid-Mechanical-Pencil-1770
w*******y
发帖数: 60932
2
I will type up more later but wanted to note:
50% back in Staples Rewards when you buy ANY of our already discounted
backpacks. In store only. Assortment varies by store. Limit 1 per
customer per week.
$.50 after easy rebate
Staples photo plus 4X6 paper gloss 60 pack
$9.99 - $9.49 easy rebate - $.50
(No limit mentioned so probably 1?)
$1 after easy rebate
Hammermill 8.5x11
CopyPlus copy paper
500 sheet/ream
$5.99 - $4.99 easy rebate = $1
Limit 2 rebates per household
$1 deals - limit 2 each (... 阅读全帖
w*******y
发帖数: 60932
3
OfficeMax.com 100% back in rewards on a bunch of stuff price $5 or less
starting 09/11/2011
100% back in MaxPerks rewards on a bunch of stuff LINK:
http://www.officemax.com/promotional-pages/maxperks-member-spec
. Log into your rewards account until OfficeMax.com page updates or see
attached.
details to follow
Note 01: The item maybe be "discontinued" until it is made available
forsale (usually around 3 AM eastern). The "discontinued" state can occur
sporadically through out the day on Sunday... 阅读全帖
w*******y
发帖数: 60932
4
Little Tikes Travel Activity Center 5.00+.97cents ship to home
@Walmart
The Little Tikes Travel Activity Center is the perfect way to keep young
kids active and busy on the road! The Travel Activity Center comes in a hard
case with adjustable carrying straps that attach to back of your car seat.
Little Tikes Travel Activity Center:
oDry-erase surface for use with crayons or dry-erase markers (markers not
included)
oEight crayons
o10-page Coloring Book
oEraser
oStorage pockets
oBuilt-in adjustab... 阅读全帖
w****2
发帖数: 12072
5
来自主题: _Mao_and_Deng版 - 锡安长老教义(整理贴) (转载)
【 以下文字转载自 Military 讨论区 】
发信人: wlwl12 (戒网), 信区: Military
标 题: 锡安长老教义(整理贴)
发信站: BBS 未名空间站 (Tue Dec 20 12:09:32 2011, 美东)
发信人: youdu (youdu), 信区: Military
标 题: 军版各位,有没有研究过锡安长老教义?
发信站: BBS 未名空间站 (Sat Nov 26 13:15:49 2011, 美东)
对理解过去三百年很有帮助。
http://www.biblebelievers.org.au/przion1.htm#TABLE OF CONTENTS
THE PROTOCOLS DIGEST-ED
Since discourse in the Protocols is often disjointed, we have taken the
liberty of grouping quotations (from Victor Marsden's 1934 edition) in what
seems a logical order of su... 阅读全帖
E*********e
发帖数: 10297
6
来自主题: _K12版 - strange!
闺女写字,我要求她用ERASER擦掉写错的字
人说,we don't use eraser till we are 4th grader.
说学校要求他们只能CROSS掉写错的字,不能用ERASER去擦掉
为什么这么STRANGE?
整个作业一点NEAT都没有!
c**i
发帖数: 6973
7
来自主题: ChinaNews版 - China and US: Manufacturing Comparison
The four reports are closely related.
(1) Regional Jets Struggle For Traction In China. Aviation Week, Apr 25,
2011.
This report is for subscribers only. It talks about regional jets. But most
important, it mentions airports in China are mostly underutilized. I will go
to a library tonight and make a few quotes available tomorrow.
My point is return on investment (ROI) dimishes over time even under the
best of circumstances. China seems profligate and prodigal to me.
(2) George Magnus, China Ris... 阅读全帖
y*******o
发帖数: 6632
8
I am not xiaojiang,
I like democracy and republic and believe china will be on that side
eventually.
I will not be pissed off by liu getting the nobel, because that exactly
means how anti-china the western is. When did ever liu contribute to the
peace of the world? The Nobel is honored for his theory that China should be
a colony for three hundred years. That is the real wish of the western and
some chinese betrayers.
It is really good that the nobel for liu. Let all chinese know that the
nobel ... 阅读全帖
y***u
发帖数: 7039
9
对理解过去三百年很有帮助。
http://www.biblebelievers.org.au/przion1.htm#TABLE OF CONTENTS
THE PROTOCOLS DIGEST-ED
Since discourse in the Protocols is often disjointed, we have taken the
liberty of grouping quotations (from Victor Marsden's 1934 edition) in what
seems a logical order of subject. We have also tried to minimize the more
offensive ones. Contemptuous references to goyim (the unfortunate Talmudic
term for Gentiles, meaning cattle) are scattered throughout the work, as
indeed one might expect if th... 阅读全帖
e*****3
发帖数: 1445
10
来自主题: Military版 - 老师过分还是儿子过分?
儿子上二年级,三天两头被老师批评。今天又收到老师的Email。
K和一年级的时候没有这么多事。是这个老师有问题还是儿子有问题?
Dear Zhangs,
Today, Antony was a little calmer than Friday, but he continued to break
bits off his eraser and throw them at students in the room. (I attached his
eraser to his folder for you to see.) I moved his desk to the back again.
Tomorrow, he will sit at the front very near to me. If this behavior
continues, he will undoubtedly have a visit to the principal.
Please continue to talk with him about appropriate classroom beha... 阅读全帖
I******a
发帖数: 3812
11
http://gyral.blackshell.com/names.html
Visit the original once in a while. Apparently, it's chock full o' updates.
Slur Represents Reasons/Origins
51st Stater Canadians Self-explanatory.
Abba-Dabba Arabs Used in the movie "Betrayed" by rural American hate group.
Abo Australian Aboriginal Derogative shortened term for Aboriginal.
Adolf Germans Hitler, of course. Generally thought of the worst person ever.
Ahab Whites From Moby-Dick. Ahab hunted the white whale.
Ainu Japanese Aboriginal Originall... 阅读全帖
d****o
发帖数: 32610
12
来自主题: Military版 - 总结一下这几天看登月的质疑
阿波罗11号可能有点问题,
两个确实不太自然的地方,
一个是原始录像全没了
http://www.nasa.gov/pdf/398311main_Apollo_11_Report.pdf
一个是让胳膊壮他们拿圣经发誓结果都不愿意
http://en.wikipedia.org/wiki/Astronauts_Gone_Wild
视频里胳膊壮并没有义正辞严的表示不屑,而是说了句莫名其妙的“你那圣经不是真的”
https://www.youtube.com/watch?v=XtW72nT7cYQ
至于其他几次登月暂时没发现什么可疑的地方
关于录像丢失的问题,中文wiki的说法(“登月使用的慢电视转播,遗失的是母片转出
的第一批动态胶卷,而非母片。而且目前已经找到,并重新恢复公开。”)跟nasa
report及英文wiki的内容都冲突,后两者明显更可信
In July 2009, NASA indicated that it must have erased the original Apollo 11
Moon footage years ago so that it could re-u... 阅读全帖
d****o
发帖数: 32610
13
来自主题: Military版 - 总结一下这几天看登月的质疑
英文wiki也没写错 真不知写中文维基的人为啥要误导群众
In July 2009, NASA indicated that it must have erased the original Apollo 11
Moon footage years ago so that it could re-use the tape. In December 2009
NASA issued a final report on the Apollo 11 telemetry tapes.[154] Senior
engineer Dick Nafzger, who was in charge of the live TV recordings during
the Apollo missions, is now in charge of the restoration project. After a
three-year search, the "inescapable conclusion" was that about 45 tapes (
estimated 15 tapes record... 阅读全帖
b*****n
发帖数: 1492
14
In July 2009, NASA indicated that it must have erased the original Apollo 11
Moon footage years ago so that it could re-use the tape. In December 2009
NASA issued a final report on the Apollo 11 telemetry tapes.[154] Senior
engineer Dick Nafzger, who was in charge of the live TV recordings during
the Apollo missions, is now in charge of the restoration project. After a
three-year search, the "inescapable conclusion" was that about 45 tapes (
estimated 15 tapes recorded at each of the three track... 阅读全帖
b********n
发帖数: 38600
15
Michael Brown’s death has several parallels in Asian-American history. The
first to come to mind may be the story of Vincent Chin, a Chinese-American
killed in 1982 by a Chrysler plant superintendent and his stepson, both
white, both uncharged in a racially-motivated murder; like Brown, Chin
unified his community to demand protection under the law. However, most
direct parallels have often had one distinct dissimilarity to Ferguson: they
have not spurred widespread resistance, nor have they engr... 阅读全帖

发帖数: 1
16
来自主题: Military版 - 我帝都妓女总指挥也想发言了
最近刚在Netflix上重温老州长的电影the Eraser,感觉这几个人物现在就需要Eraser
保护啊
W***n
发帖数: 11530
17
Trump doesn't have magic wand to wipe out Puerto Rico's debt
by Matt Egan @mattmegan5
October 4, 2017: 2:48 PM ET
The "King of Debt" has plenty of power, but he can't make Puerto Rico's
mountain of debt magically disappear.
President Trump, who gave himself the royal moniker during the 2016 campaign
, told Fox News' Geraldo Rivera that "we will have to wipe out" Puerto Rico'
s crushing debt load.
Trump's dramatic statement spooked the market. The price of some Puerto
Rican bonds crashed 15%... 阅读全帖
W*****B
发帖数: 4796
18
咋这么牛逼呢?这老逼养的是何方神圣?
Kylie Jenner tweet tanks Snap shares, erases $1B+ in stock value
A single tweet from reality star Kylie Jenner caused Snap Inc. shares to
plummet on Thursday.
Snap shares fell more than 8% in trading, one day after Jenner, 20, tweeted
that she has stopped using Snapchat, the company's core platform. The
plunge erased the equivalent of more than $1 billion in market value for the
struggling company.
"Sooo does anyone else not open Snapchat anymore? Or is it just me…
; ... 阅读全帖

发帖数: 1
19
名字叫舍恩。
德国科学家。不少Nature,Science。后来均被撤稿。
以下摘自维基百科。将军们怎么看这位白人科学家?据一位王姓的华人知名professor
透露,他去演讲,有个欧洲白人老头老是说华人professor的文章是造假造出来的数据
,华人教授气都气死了。
【舍恩事件】
舍恩事件是一起于2002年揭发的大规模学术论文造假丑闻。事件主角扬·舍恩 (Jan
Hendrik Schön) 1970年生于德国费尔登,1997年获康斯坦茨大学物理学博士学位
并留校任教,1998年加入贝尔实验室,于贝尔特拉姆·巴特洛格教授指导下做材料学研
究,2001年成为正式员工。之后的4年里,他与20多人合作在许多大型国际期刊上发表
了超过80篇论文,在《自然》和《科学》上发表的第一作者署名的论文就有17篇。这些
论文在当时被认为于分子电路、分子半导体、有机激光、高温超导和纳米科技领域取得
突破进展,震动了整个科学界。2001年,他获得了德国最重要的科学奖项之一——奥托
·克隆-韦伯银行奖。
舍恩最出名的“成就”是于2001年11月发表的单分子场效应管。他称在两层金电极之间
用含硫的有... 阅读全帖

发帖数: 1
20
来自主题: Military版 - cnn:The entire Trump stock rally is gone
The entire Trump stock rally is gone: Dow erases all its gains since Donald
Trump took office
不靠谱的潮水已退,盗琼斯掰掉了其上任来勃起的牛逼
https://edition.cnn.com/2020/03/18/investing/stocks-erase-trump-gains/index.
html
c*****g
发帖数: 21627
21
来自主题: USANews版 - 疣太高盛迫害前员工
Michael Lewis: Did Goldman Sachs Overstep in Criminally Charging Its Ex-
Programmer?
A month after ace programmer Sergey Aleynikov left Goldman Sachs, he was
arrested. Exactly what he’d done neither the F.B.I., which interrogated him
, nor the jury, which convicted him a year later, seemed to understand. But
Goldman had accused him of stealing computer code, and the 41-year-old
father of three was sentenced to eight years in federal prison.
Investigating Aleynikov’s case, Michael Lewis holds a s... 阅读全帖
l****z
发帖数: 29846
22
Gov't plans to erase student debt for Corinthian students
By ANNE FLAHERTY | June 8, 2015 | 4:35 PM EDT
WASHINGTON (AP) — The federal government will erase much of the debt of
students who attended the now-defunct Corinthian Colleges, officials
announced Monday, as part of a new plan that could cost taxpayers as much as
$3.6 billion.
Corinthian Colleges was one of the largest for-profit schools when it nearly
collapsed last year and became a symbol of fraud in the world of higher
education and s... 阅读全帖
g********2
发帖数: 6571
23
来自主题: USANews版 - Hillary's Emails: Soaked in Bleach
August 29, 2016
Hillary's Emails: Soaked in Bleach
By Ryan Hansen
...
In light of ongoing revelations about Hillary Clinton's email, this raises a
question: what crime scene was Hillary Clinton sanitizing when she (
speaking of her team collectively) used BleachBit to erase hundreds of
emails from her "private" server? (I say "private" because it's obvious
that the server was known to exist by agents outside Hillary's camp, many of
whom are not friendly to America and its interests and who almo... 阅读全帖
l********7
发帖数: 2974
24
【 以下文字转载自 Stock 讨论区 】
发信人: Forbes (福布斯), 信区: Stock
标 题: 股市开跌,希拉里终于被股版整死了,FBI reopen the case
发信站: BBS 未名空间站 (Fri Oct 28 13:39:32 2016, 美东)
FBI Reopens Clinton E-Mail Probe Less Than 2 Weeks Before Vote
October 28, 2016 — 12:15 PM CDT Updated on October 28, 2016 — 12:27 PM CDT
The Federal Bureau of Investigation is reopening its inquiry into Hillary
Clinton’s use of private e-mail while secretary of state, a politically
explosive development less than two weeks before the presidential election.
... 阅读全帖
z****z
发帖数: 2054
25
对了解alt-right应该有帮助.
An Establishment Conservative’s Guide To The Alt-Right
by Allum Bokhari & Milo Yiannopoulos29 Mar 20164584
A specter is haunting the dinner parties, fundraisers and think-tanks of the
Establishment: the specter of the “alternative right.” Young, creative
and eager to commit secular heresies, they have become public enemy number
one to beltway conservatives — more hated, even, than Democrats or loopy
progressives.
The alternative right, more commonly known as the alt-right, is ... 阅读全帖
c******r
发帖数: 3778
26
pc版的有eraser,免费下载一个就可以了:
http://download.cnet.com/Eraser/3000-2092_4-10231814.html?tag=mncol
n******0
发帖数: 84
27
My Lexus ES300 has same problem after 125000K, code: P0446. Shouldn't be
the gas cap but suggest to change it ($10 or less for a new one) as The
Charcoal Canister replacement is about $300 to $400. I left the light on
and use my own code scanner ($30) to erase it sometime. Erase it and drive
the car for 40+ miles before yearly inspection (NYS).
w********o
发帖数: 10088
28
如果真的有问题,光用tool erase了没用
首先,erase之后200-300 mile内去检测,不会过
200-300 mile以后,灯会重新亮起
s*****8
发帖数: 606
29
如果dealer知道有history code,他能傻到不给erase了。。。。
engine code分即时和延迟两种,即时的及时erase掉,只要run engine就会重新量;延
迟的一般都要开10-20mile(跟时间没有关系),即行车电脑需要适应一段时间后会重
新generate code。
g****g
发帖数: 1828
30
You're driving along in your car or truck and suddenly a yellow light
illuminates on your dash telling you to check or service your engine. If you
're like most car owners, you have little idea about what that light is
trying to tell you or exactly how you should react.
Call it the most misunderstood indicator on your dashboard, the "check
engine" light can mean many different things, from a loose gas cap to a
seriously misfiring engine.
"It doesn't mean you have to pull the car over to the side... 阅读全帖
m********8
发帖数: 16
31
来自主题: Automobile版 - 在NJ简化INSPECTION的情况下 (转载)
no and yes。会让你开XX MILES再去。有个TRICK,ERASE ERRO CODE后,要算过了多少
MILE灯又亮,比如100MILE,你就掐准80MILE时去,然后看运气,如果只有一个
DEVICE NOT READY,会过。我当时是这么过的.过了后刚开出INSPECTION不到1MILE就
亮.
ERASE ERROR CODE马上就去,都是NOT READY,不可能过的。
另外你的马甲,好象侵犯我的专利了,请付包子
g********b
发帖数: 8461
32
来自主题: Automobile版 - 大众车十大恶心毛病
开大众的看看自己车上有没有~~
1 Stripped oil pan bolt thread 油底壳螺纹损坏. 问题现象:油底壳螺丝拧不紧,
滑丝,渗漏。恶心指数:1,维修成本:oil pan $100 labor $100. 要说出了这问题其
实不能怪大众,怪只能怪换机油的人太SB使这么大力气拧螺丝,但是大众非要用这么软
的铝做油底壳,所以也难辞其咎。油底壳螺丝稍微用力大点就会把螺纹搞坏,坏了还只
能换油底壳解决。别的厂家要不用铁油底壳,要不把螺丝口用铁加固一下。很多大众车
机油消耗量大,有的还真不一定是烧的,而是这里漏出去的。有些aftermarket的复合油底
壳,用铝+铁的方式,可以解决这个问题,如果需要换的话可以考虑。
2 engine splash shield引擎下护板. 问题现象:引擎下护板损坏或丢失。恶心指数:
2,维修成本:parts $200, labor $30-50. 大众车底盘本来就低,再加上这么一套就
用几个卡扣固定的脆皮塑料下护板,开大众的人都知道只要稍微跑跑烂路或者蹭下便道
这下护板也就基本报废了。恶心的是别家的下护板都是把引擎下面整个盖上的那样下护
... 阅读全帖
u*******g
发帖数: 1808
33
来自主题: Automobile版 - 丢了要命的书包,怎么办
多谢大家关心和出主意
我的书包找回来了,她把我们的钱包放车上,书包在家里。我很不厚道的想她开始不想
给我们。如果想还给我们,当时就可以联系酒店前台。不用开出几十个mile过了几个小
时,再联系我们。
拿书包的和酒店应该有关系,因为酒店不在繁华的路上,那里的人不是员工就是住客。
她可能是员工,开始只是想占个小便宜,没想到包里东西值几千刀,还有那么多重要的
文件。如果被抓到,那value可能够给他带来挺大麻烦了,所以怕被抓到就还给我们了
。估计目击者描述很详细的事情酒店有人给她通风了。
也许是2年前我捡到ipad还给失主得到的回报吧,看来人还是要多做善事。
最后问个问题,所有的设备都在icloud上面设置了erase,现在不想erase了,icloud上
面没有取消的选项,怎么办?
f****t
发帖数: 15913
34
来自主题: Automobile版 - 求助,怎么修车最好
那些黑色的痕迹你可以用“Mr clean magic eraser”试一下,应该很容易就能擦掉,
你可以先在角落里试,确认不伤漆,然后就可以大范围擦了,这个eraser在walmart之
类的地方有卖,象海绵一样,如果效果好,就送我几个包子吧。

1
X***9
发帖数: 7385
35
来自主题: Automobile版 - 卖车给私人,需要注意什么?

给你一个例子
我3月底把旧车卖了,因为买车的人需要修muffler,通过inspction才能register。我
就同意他先用我几天我的车牌。2周后他email说周末就归还我的plate,然后就没信了
。现在都2个月了,我给他写信,也不回复我。前不久收到了4月份闯红灯的ticket,
75
块。我现在也联系不上这个买车的。今天给DMV打电话,才得知我title还在我名字下面
,他根本没转title。
我现在应该怎么办?我今天已经cancel我的plate了,但是以前的罚单,只能我来付吗
?不付的后果怎么样?或者我可以提供他3月就买走我车的证据,这样我就不负责罚单
了?很烦心,当时好心结果他用,结果却惹了麻烦。当初卖车也没留一个title
transfer 复印件,都是教训。以后大家卖车,别像我似的。
如果你要在加州还要确认你的车可以过smog check,不然买方即便想过户也过不了。
还有一些仁兄也是建议说
-如果可能,或者最好和买家一起DMV transfer。
很重要的是收现金,一起去银行,直接让买家存进你的银行账户。感觉最近其他方式都
有风险。感觉挺复杂,不知道大家有什么更好... 阅读全帖
s*****d
发帖数: 258
36
多谢了。。焊好后用OBD II Reader erase code, 吭呲吭呲一阵后说 Erase Error。发
动车,check engine 灯不亮了!!关engine,在发动,check engine 灯又亮了, 还
是 p0340, camshaft position sensor circuit error. 这是怎么回事?


: 这个好办,买/借一个 soldering iron,把断了的线分别焊上,用电工胶布包住

w*******y
发帖数: 60932
37
【 以下文字转载自 DealGroup 俱乐部 】
发信人: wiiRhappy (wiiRhappy), 信区: DealGroup
标 题: Corner Desk w/ Hutch $120 (Was $330) Free Shipping
发信站: BBS 未名空间站 (Mon May 31 13:15:56 2010, 美东)
Buy both desk and hutch @ Link:
http://www.officedepot.com/promo/list5.do?listtype=G2
Add 1 eraser @ Link:
http://www.officedepot.com/a/products/724936/Office-Depot-Pink-Bevel-Eraser-Small/
Add coupon code 80932878
Enjoy free shipping
My total was 126.29
w********9
发帖数: 8613
38
这里抱怨的人基本上都是女的?大部分人还没有比较独立的小小孩?和白人接触不多?
在我小孩的班上(学校在中产阶级或以上的地区),最捣乱的是两个6-7岁的白人小男
孩(曾经被罚站)。还有个白人小女孩有些mean(有次老师火了,给所有的家长发了一
个email提醒个别小孩需要更多的约束,没有点名)。有一次,我看到她把一个同学气
哭了。还有一次,到我小孩的桌子上把eraser拿走,说是我小孩偷了她的。后来,那女
孩找到了自己的eraser。班上仅有的6个亚裔小孩都比较规矩。那两个男孩中的一个参
加我小孩在children’s zoo的生日聚会,被警告几次无效,最后被节目主持人赶了出
去(后来是我陪着他的)。
比较小的小孩到家里玩很容易出些小状况。新鲜感强,注意力不能长时间集中,大人说
的话不见得真听进去了,习惯在形成,没有那么多规范。“通病”。
以前,同学的小孩弄坏了我们新的体重称和新音响的cd转换盘。没有什么不正常的。我
自己的小孩不知后果,也弄坏不少东西(最常见的是:玩得高兴,东西没抓紧,掉在地
下摔坏了;还有吃东西会掉)。她弄脏乱基本上都是要自己收拾的。还是会出不少错。
特别好动,在外面玩
i**h
发帖数: 424
g**u
发帖数: 583
40
来自主题: JobHunting版 - Google Onsite 面经
用stl的priority_queue写了下multi-way merge, 请大家拍砖。
其中: myPair的第一个就是要存储的值, 第二个表示ownership.
/*
*multiple way merge using the priority_heap
*/
#include "vector"
#include "queue"
class myPair{
friend std::ostream & operator<<(std::ostream & out, const myPair &p)
{
out<<" ( "< return out;
}
public:
myPair(int x, int y):_first(x),_second(y)
{
}
bool operator >(const myPair & p)const
{
return this->_fir... 阅读全帖
i**********e
发帖数: 1145
41
来自主题: JobHunting版 - 请问一道很难的面试题
刚想到很精简的 code,不需要用 post-fix stack-based expression,直接储存进一
个 string 数组即可。
效率应该是不错的了,有一些方面可以考虑提高效率,例如用 vector 需要删除元素可
能会慢些,但 vector 里的元素很少,应该影响不大。
还有一点就是每次传递归的时候,都需要把所有的数组重新 copy 一次。这是无可避免
的,因为每次进入下一层递归时必须传 copy,不能在原有数组中更改。
#include
#include
#include
#include
#include
using namespace std;
void generate(vector A, int target, int s, vector expression);
template
void eraseAt(vector &vec, int i) {
typename vector::iterator ... 阅读全帖
d*******r
发帖数: 208
42
来自主题: JobHunting版 - 一道G家题目
再循环里面erase,不小心很容易出bug
你这个循环里erase后,vector后面的数会补上来,应该加一个i--否者就跳过了一个数。
m**q
发帖数: 189
43
来自主题: JobHunting版 - 几道老题 的解答
同样,当检查一个新的点时,需要把x-h之前的点从map中去掉,
其实可以用一个map存[x-h,x]中的点,key是y坐标。在向map中
添加一个新的点时,先检查map里是否有y坐标相同的点,有则删除;
同时把x-h之前的点依据它们的y坐标,把它们从map中删除。
总复杂度不超过O(nlgn)。
#include
#include
#include
#include
#include
using namespace std;
#define REVESE_PAIR(x) (make_pair(x.second, x.first))
#define PAIR(x) (make_pair(x.first, x.second))
double dist(pair a, pair b)
{
int x = abs(b.first - a.first);
int y = abs(b.second - a.second);
doubl... 阅读全帖
h****e
发帖数: 71
44
:自己带MARKER (DRY ERASE)
~~~~~~~~~~~~~~~~~~~~~~~~
请后面的同学注意!这是DRY ERASE的白板笔,不是记号笔啊!否则写在人家白板上,
擦不掉,那就要汗了。。。上班第一天要赔人家一块白板:)
b*****c
发帖数: 1103
45
来自主题: JobHunting版 - 上个题大家给评评 (G家的)
list (list span_lis, Node & span)
{
if (span_lis==NULL) return NULL;
list::iterator iter=span_lis.begin();
while (iter!=span_lis.end())
{
if ((*iter).second>=span.first-1)
{
(*iter).first=min((*iter).first,span.first);
(*iter).second=max((*iter).second,span.second);
while (++iter !=span_lis.end())
{
if ((*iter).first>*boost::prior(iter).second+1)
{
break;
}
else
if ((*iter).second>*boost::prio... 阅读全帖
b*****c
发帖数: 1103
46
来自主题: JobHunting版 - 上个题大家给评评 (G家的)
list (list span_lis, Node & span)
{
if (span_lis==NULL) return NULL;
list::iterator iter=span_lis.begin();
while (iter!=span_lis.end())
{
if ((*iter).second>=span.first-1)
{
(*iter).first=min((*iter).first,span.first);
(*iter).second=max((*iter).second,span.second);
while (++iter !=span_lis.end())
{
if ((*iter).first>*boost::prior(iter).second+1)
{
break;
}
else
if ((*iter).second>*boost::prio... 阅读全帖
i**********e
发帖数: 1145
47
来自主题: JobHunting版 - leetcode 这题insert interval怎么做?
看错了,你传的是两个 iterator range,复杂度不是 constant,但总的来说总复杂度
应该还是 worst case O(n) 的。
那个 map -> 还是用的挺巧妙的阿,学习了。
For the last version ( erase(first,last) ), logarithmic in container size
plus linear in the distance between first and last.
http://www.cplusplus.com/reference/stl/map/erase/
i**********e
发帖数: 1145
48
来自主题: JobHunting版 - leetcode 这题insert interval怎么做?
看错了,你传的是两个 iterator range,复杂度不是 constant,但总的来说总复杂度
应该还是 worst case O(n) 的。
那个 map -> 还是用的挺巧妙的阿,学习了。
For the last version ( erase(first,last) ), logarithmic in container size
plus linear in the distance between first and last.
http://www.cplusplus.com/reference/stl/map/erase/
z********c
发帖数: 72
49
来自主题: JobHunting版 - 讨论一道题
heap不能解决频度发生改变时的调整,所以我想到的可以用hash+BST解决,C++里BST的
实现采用set
map freq;
set > bst;
bst的元素是一个的pair,以frequency排序
来一个str
1. f = freq[str] ++;
2. if (bst.find ((f, str)) != bst.end ()) {
// bst里有str了,那么更新str的freq值
bst.erase ((f, str))
bst.insert ((f + 1, str))
}
3. else
if (bst.size () < K)
// bst里元素不足K
bst.insert ((f + 1, str))
4. else
if (f + 1 > bst.begin ()->first) {
// str的freq大于bst中最小元素的freq
b... 阅读全帖
P*A
发帖数: 189
50
来自主题: JobHunting版 - 讨论一道题
用BST挺好,比heap维护更方便,
修改了一下,可以不用把pair当作key来排序,在hash里面记录BST结点的指针
multimap bst;
hash_map > hm;
foreach given key k
0. if(hm.find(k)==hm.end()) {
hm.insert(make_pair(k, make_pair(1, bst.end())));
if (bst.size () < K) {
// bst里元素不足K
t = bst.insert (make_pair(f, k))
hm[k].second = t;
}
continue;
}
1. f = ++hm[k].first;
2. if (hm[k].second != bst.end()) {
// bst里有k了,那么更新freq值
bst.erase (hm[k].se... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)