由买买提看人间百态

topics

全部话题 - 话题: sentenced
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
W*****B
发帖数: 4796
1
【 以下文字转载自 Military 讨论区 】
发信人: WCNMLGB (CCC), 信区: Military
标 题: 休斯顿杀人嫌犯之一最近刚从监狱里放出来
发信站: BBS 未名空间站 (Thu Jan 18 22:53:03 2018, 美东)
真是他妈人渣,之前因为其它暴力犯罪被判30年,结果只带了3年就出来了。
亚城老张和滨州老头把牢底坐穿
Suspect in Spring couple's murder served only three years of 30-year
sentence
Email
EMBED </>MORE VIDEOS
PAROLE SHOCKER: A victim's advocate said he was shocked when he learned
Khari Ty Kendrick was released three years into a 30-year prison sentence.
By Marla Carter
Updated 46 mins ago
SPRING, Texas (KTRK) --... 阅读全帖
j**w
发帖数: 382
2
来自主题: JobHunting版 - 请教一道电面算法题
feature selection.
http://en.wikipedia.org/wiki/Feature_selection
A simple way.
(1) Find the shortest sentence. Put all of its word into a set S, and marked
this sentence.
(2) Among all remaining unmarked sentences, pick the sentence such that the
number of words which are not in S is the minimal. Add those "new" words
into S and mark the related sentence.
(3) Repeat (2) until half of the sentences are marked.
p*****2
发帖数: 21240
3
来自主题: JobHunting版 - DP与Greedy的题
前两天有人问DP和Greedy的区别,今天做了一道题不错。我先用DP解,当时感觉有点别
扭,因为觉得好像有条件没有用上,结果超时。后来才意识到这题是Greedy. 想感觉一
下DP和Greedy的可以练练。
Sergey attends lessons of the N-ish language. Each lesson he receives a
hometask. This time the task is to translate some sentence to the N-ish
language. Sentences of the N-ish language can be represented as strings
consisting of lowercase Latin letters without spaces or punctuation marks.
Sergey totally forgot about the task until half an hour before the next
lesson and hastily scribbled some... 阅读全帖
t********6
发帖数: 348
4
来自主题: JobHunting版 - 弱问一道G家电面题
伪代码,不是最优解,轻拍
// make sure not same word in one sentence??
// what if same word in one sentence??
unordered_map > M;
int best;
int s1; // best sentence 1
int s2; // best sentence 2
for ( s : sentence ) {
// N: the number of common words with sentence a is b
unordered_map N;
for ( w : s) {
for( i : M[w]) {
N[i]++;
if (N[i] > best) {
// update the best, s1, s2
}
}
M[w].push_back(s_index);
}
}
k****r
发帖数: 807
5
来自主题: JobHunting版 - L的onsite冤了
这个brute force是不是太笨了?///
pair, vector> max_common_words(vector>
sentences) {
unordered_map> string_map;
unordered_map, int, hashPair> pair_map; // pair, count

pair, vector> res;

for (int i = 0; i < sentences.size(); i++) {
for (int j = 0; j < sentences[i].size(); j++) {
string_map[sentences[i][j]].push_back(i);
}
}
for (auto& it : string_map) ... 阅读全帖
c********l
发帖数: 8138
6
来自主题: Stock版 - 浅谈美国的弱者福利政策
说美国的仇富轻的,原来这篇文章里这么多评论都是中共五毛派来的特务啊
http://www.huffingtonpost.com/2010/05/18/huang-guangyu-former-r
Huang Guangyu, Former Richest Man In China, Gets 14 Years In Jail
这篇报道的内容本身并没有多少特别之处,读者们对这篇报道的评论却很有意思:大部
分言辞都很“偏激”,颇似“愤青仇富”之美国版。
本网友去看的时候,已经显示“Comments are closed for this entry(此条的评论已
关闭)”。
看来,评论若是太“激烈”,美国网站也会采取“关闭评论”之类的措施。
本网友特地收集了这些“偏激”言辞中的一部分并做了大致意思上的翻译,命名为《美
国愤青“仇富”言论集锦》。
“愤青”言辞的原文如下,中文是本网友给出的大致翻译:
————————————————
Scott Zwartz 02:26 PM on 5/20/2010 81 Fans
Now we know why Wall Street won't be ... 阅读全帖
r*****e
发帖数: 7853
7
Georgia couple gets prison for racist threats at child's birthday party
A Georgia couple who rode with a Confederate flag-waving group that made
armed threats against African-Americans at a child's birthday party were
sentenced to prison Monday.
Jose "Joe" Torres, was sentenced to 20 years, with 13 years in prison, after
a jury convicted him on three counts of aggravated assault, one count of
making terroristic threats and one count of violating of Georgia's Street
Gang Terrorism and Prevention ... 阅读全帖
s******g
发帖数: 654
8
The IRS is going after tax cheat issue. This may explain everything.
http://www.accountingtoday.com/news/IRS-Warns-Tax-Preparer-Frau
The Internal Revenue Service has been investigating and helping prosecute a
number of tax preparers in Southern California who have been cheating the
government and their clients.
As the tax filing season is in full swing, the IRS noted that it’s
important for taxpayers to find honest, qualified tax professionals if they
need tax preparation assistance. Taxpayers a... 阅读全帖
s*******w
发帖数: 2257
9
润涛阎:梁警官事件暴露出来的家教短板
2016-02-20 19:16:30
润涛阎
润涛阎政治面目:瓜子脸。要招人恨,恨得咬牙切齿;要惹人爱,爱得死去活来;要让
人服,服得五体投地。
(一)梁警官是极端自私之人,才导致陪审团成员无法原谅他
12个陪审团都一致认为梁警官有罪,那为何华人大都以为美国司法表现在梁警官身上就
是判决不公?言外之意有种族歧视的嫌疑?
撇开种族立场,单从心理学角度来看梁警官这个案子,我们就需要静心静气地反思这一
事件是什么因素导致12个陪审团一致认为梁警官有罪的共同心理。
我们需要做一个假设,假设梁警官是一个有教养的人,那就会出现下列一系列“如果”
。我们根据这些“如果”对12个陪审团的心理作用从而推导出结局应该是怎样的。
1.如果梁警官是一个善良的人,那当他得知他的子弹误伤了人(这是他和同胞们坚守的
案件定性),那他就应该不考虑自己的得失而立刻去对受伤者施救。
2.如果梁警官是一个能换位思考的人,那他就应该当即明白无辜被杀的人也有父母或妻
子儿女等亲人,人家的亲人被打死了,他就当即想到如果自己是对方,自己的父母兄弟
妻子儿女等亲人该是何等痛苦?
3.如果梁警官... 阅读全帖
g******d
发帖数: 1774
10
62岁的Fang Ping Ding
36岁的Wei Wei Liang
43岁的Bo Shen
从国内带人入境,变为家奴,
没收护照,体罚,不付工资
Fremont woman sentenced in human trafficking case
By Rob Dennis
Oakland Tribune
Posted: 11/17/2010 03:59:12 PM PST
Updated: 11/18/2010 07:13:46 AM PST
OAKLAND -- A Fremont woman has been sentenced to more than three years in
prison on a human-trafficking charge for forcing a Chinese woman to work as
an unpaid live-in domestic servant, federal officials said.
Fang Ping Ding was sentenced late Tuesday to 37 months in priso... 阅读全帖
p*********e
发帖数: 32207
11
6月份州长刚签字核准了Threatened Use of Force Act
2014版的Florida Statutes已经对
F.S. 776 JUSTIFIABLE USE OF FORCE一章
及F.S. 775 (TITLE XLVI CRIMES的总章)的部分章节
进行了增删
法案基本上就是将use of deadly force和threatened use of deadly force
放在同一地位
包括可以使用的场合,以及事后的
immunity from criminal prosecution and civil action
均一视同仁
并取消了对符合F.S. 776描述的情况下用枪威胁对方的刑事处罚
下面附上F.S. 776:
http://www.leg.state.fl.us/statutes/index.cfm?App_mode=Display_
和一部分法案原文:
F.S. 776.012
"
(2)?A person is justified in using or threatening to use deadly force if he
or ... 阅读全帖
E*****m
发帖数: 25615
12
来自主题: TrustInJesus版 - 耶穌應該被判什麼罪? (ZT)
http://religion.blogs.cnn.com/2011/04/22/jesus-on-trial-would-h
Jesus on trial: What would a modern jury do?
By Eric Marrapodi, CNN Belief Blog Co-Editor
Richmond, Virginia (CNN) – If Jesus were tried in Richmond, Virginia, today
, would he have been sentenced to death? Or would he have faced life behind
bars with no chance for parole?
That’s the choice given to jurors here recently.
During Lent, the Church of the Holy Comforter used Virginia law to retry the
sentencing phase of the blasphemy ca... 阅读全帖
G*M
发帖数: 6042
13
来自主题: TrustInJesus版 - The Humiliation of Christ
Bible Course - Christian Doctrine
Lesson 6
The Humiliation of Christ
Lord's Day 14 - 16
The humiliation of Christ
After discussing the names of the Mediator, the instructor now deals with
the states. "States" refer to the relationship with God. Lord's Days 14, 15
and 16 deal with the state of humiliation, which is divided into degrees. "
Degrees" view the ever-deepening process of Christ's suffering. Over against
this progressive humiliation, there is also a progressive exaltation.
Lord's Day 14... 阅读全帖
G*******s
发帖数: 4956
14
Blinded By Tradition:
An Open Letter to Dave Hunt
Regarding His Newly Published Attack Upon the Reformation, What Love Is This
? Calvinism's Misrepresentation of God
James White
Updated 5/16/02, see bottom of file
Dear Dave,
In the period of time since I finally received my own copy of your book (you
may recall I scanned through it while standing at your table in St. Louis a
t the PFO Conference) I have gone through a number of different emotions. A
t first I was just going to do one Dividing ... 阅读全帖
c******s
发帖数: 2508
15
来自主题: _K12版 - 说说我们的家长会吧
我因为儿子writing 拿了2分,就去搜了一下writing the 要求,一看,还真是不低呢。
FIRST GRADE WRITING CONVENTIONS
Spelling
* Conventional spelling of high frequency and grade-level words
* Some common spelling patterns (e.g., sat, mat)
* Phonetic spelling on other words, including vowels First word in a sentenc
e
Capitalization
* Pronoun “I”
* Names of people
* Days of the week
* Months
Punctuation
* Period, question mark, or exclamation point at the end of sentence
Grammar & Usage
* Correct use of singular and plural nouns
Se... 阅读全帖
e***e
发帖数: 3872
16
来自主题: _ZST版 - 2010诺贝尔和平奖颁奖词
http://www.dw-world.de/dw/article/0,,6317401_page_1,00.html
诺贝尔和平奖网站上刊登了评委会主席亚格兰的颁奖致词。德国之声在此全文转载其中
文版本。
国王和王后陛下、阁下们、女士们、先生们,
“挪威诺贝尔和平奖委员会决定,授予刘晓波刘晓波刘晓波刘晓波 2010 年诺贝尔和平
奖,以表彰他为争取和维护中国基本人权所进行的长期的、非暴力的努力。挪威诺贝尔
和平奖委员会一向的观点是,人权与和平之间有着紧密的联系。人权是阿尔弗雷德&#
8226;诺贝尔在其遗嘱中所提出的‘各国间友爱’的先决条件。”
我刚才所读的,是今年 10 月 8 日挪威诺贝尔和平奖委员会颁奖公告的第一段。
我们深感遗憾的是,和平奖获得者刘晓波正被隔离监禁在中国东北部的一个监狱里,不
能亲自出席今天的仪式。他的妻子刘霞或其他亲属也不能前来。因此,今天我们不会颁
发和平奖的奖章和证书。
这一事实本身就说明,授予刘晓波这项奖是必要的、应该的。我们对他荣获本年度诺贝
尔和平奖表示衷心祝贺。
历史上,曾经有多位和平奖得主无法亲自出席颁奖仪式。事实上,最有历史意义和最具
荣誉的... 阅读全帖
M*****8
发帖数: 17722
17
http://bit.ly/hV0fzM
注意读者的评论。
Indian-American gets 32 yrs for selling US secrets
AGENCIES, Jan 26, 2011, 07.22am IST
WASHINGTON: Indian-American Noshir Gowadia, a former B-2 stealth bomber
engineer, was on Monday sentenced by a US court to 32 years in jail for
selling American military secrets to China.
Gowadia, 66, has spent the past five years in prison. Prosecutors alleged
that the Mumbai-born Gowadia, who showed no emotions as the judge announced
the punishment, had helped design an exhaust ... 阅读全帖
s*********8
发帖数: 901
18
(Bloomberg) -- Former Illinois Governor Rod Blagojevich, convicted of trying
to trade a U.S. Senate for personal favors or campaign cash, may face
longer in prison than the 6 1/2 years his predecessor got for political
corruption.
Blagojevich, a twice-elected Democrat who stood trial in Chicago for the
second time, was found guilty yesterday by a federal jury on 17 counts,
among them three crimes that carry prison sentences of as long as 20 years.
A different jury in the same courthouse convicte... 阅读全帖
h*d
发帖数: 19309
19
重刑?

Adam Holcomb
30-year-old Sgt. Adam Michael Holcomb of Youngstown, Ohio was the first of
the soldiers involved in Chen's death to stand trial. He faced charges
including negligent homicide, reckless endangerment, communicating a threat,
assault, maltreatment of a subordinate, dereliction of duty and violating a
lawful general regulation, which combined carried a maximum prison sentence
of up to 17 years and 9 months. He pleaded not guilty. The trial was
conducted at Fort Bragg.[23][24] He wa... 阅读全帖
L*********2
发帖数: 10195
20
哈哈,耍赖皮了吧?
Sentence[edit]
After a highly publicized six-week jury trial, Stewart was found guilty in
March 2004 of felony charges of conspiracy, obstruction of an agency
proceeding, and making false statements to federal investigators, and was
sentenced in July 2004 to serve a five-month term in a federal correctional
facility and a two-year period of supervised release (to include five months
of electronic monitoring).[41]
Bacanovic and Waksal were also convicted of federal charges and sentenced... 阅读全帖
t*******y
发帖数: 21396
21
T.J. Lane, the Chardon High School shooter, escapes Ohio prison
Two Ohio prisoners, including the teenage gunman who killed three in a high
school shooting in 2012, escaped from the Allen Correctional Institution on
Thursday night.
T.J. Lane, now 19, and Clifford Earl Opperud, 45, escaped about 5:30 p.m.
from the prison in Lima, almost 72 miles north of Dayton, according to Lima
police.
Lane was convicted in the shooting rampage that killed three and injured
others at Chardon High School east of... 阅读全帖
l*****7
发帖数: 8463
22
世界上有比美国言论更自由的国家吗?
Petraeus sentenced to 2 years' probation for military leak
The Associated PressMitch WeissApr 23rd 2015 4:12PM
CHARLOTTE, N.C. (AP) -- Former CIA Director David Petraeus, whose career was
destroyed by an extramarital affair with his biographer, was sentenced
Thursday to two years' probation and fined $100,000 for giving her
classified material while she was working on the book.
The sentencing came two months after he agreed to plead guilty to a federal
misdemeanor count of unau... 阅读全帖
l*****7
发帖数: 8463
23
Petraeus sentenced to 2 years' probation for military leak
The Associated PressMitch WeissApr 23rd 2015 4:12PM
CHARLOTTE, N.C. (AP) -- Former CIA Director David Petraeus, whose career was
destroyed by an extramarital affair with his biographer, was sentenced
Thursday to two years' probation and fined $100,000 for giving her
classified material while she was working on the book.
The sentencing came two months after he agreed to plead guilty to a federal
misdemeanor count of unauthorized removal a... 阅读全帖
y*****r
发帖数: 327
24
来自主题: Military版 - 这就是trump粉要的law and order吧
3 men charged with plotting to bomb Kansas apartment complex and mosque day
after presidential election
Garden City terror suspects
(Curtis Allen and Gavin Wright, both 49, and of Liberal, Kansas, and Patrick
Eugene Stein, 47, of Wright, Kansas, face a charge of conspiring to use a
weapon of mass destruction to detonate bombs at an apartment complex in
Garden City.Photo via WIBW Twitter)
Three men were arrested on Friday in connection with a plot to bomb a Kansas
apartment complex and mosque, fe... 阅读全帖
t**x
发帖数: 20965
25
来自主题: Military版 - 给大家分享一个斯坦福牛人
http://people.com/archive/a-remorseless-murderer-goes-free-after-seven-years-refusing-to-promise-that-he-wont-kill-again-vol-23-no-13/
A Remorseless Murderer Goes Free After Seven Years, Refusing to Promise That
He Won't Kill Again
By Dianna Waggoner
Polite, patient and with the same deathwatch calm he had brought with him
seven years and 20 days earlier, Theodore Streleski emerged last week from
the California Medical Facility in Vacaville and prepared to resume an
unexceptional life on the out... 阅读全帖
c*******a
发帖数: 1879
26
来自主题: Military版 - 迟来的正义
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: hunter2 (hunter), 信区: SanFrancisco
标 题: 迟来的正义
发信站: BBS 未名空间站 (Mon Jan 1 11:01:15 2018, 美东)
圣荷西抓了一个icc女老印。很好奇,巴马时期怎么没人整治这种事情??
https://www.justice.gov/usao-ndca/pr/san-jose-businesswoman-sentenced-prison
-high-technology-worker-visa-fraud
San Jose Businesswoman Sentenced To Prison For High-Technology Worker Visa
Fraud
SAN JOSE - San Jose businesswoman Sridevi Aiyaswamy was sentenced to 13
months in prison today as a result of her involvement in executing an H-1... 阅读全帖
C**o
发帖数: 10373
27
来自主题: Military版 - 说说许文艺的事迹
WOODLAND — For months, Wenyi Xu photographed young children to satisfy her
lover’s sexual fantasies, at one point sending him pictures of her own
toddler daughter, authorities said.
Their conduct came to a halt in Davis, however, where Xu and Nicholas Robert
Bowen were arrested in July 2013 after she exposed herself to kids
bicycling through Community Park while Bowen recorded her on his cell phone.
For her actions, Xu, a 31-year-old Folsom resident, on Monday received a
three-year, eight-month ... 阅读全帖
g********d
发帖数: 4174
28
China to retry farmer given life for evading tolls
BEIJING – A Chinese court announced Friday it will retry a
farmer sentenced to life in prison for evading highway tolls after a massive
public outcry over his heavy punishment.
The court in central Henan province had sentenced Shi Jianfeng to life
imprisonment for fraud for avoiding highway tolls that added up to more than
3.68 million yuan ($560,000), the official Xinhua News Agency reported. He
was also fined 2 million yuan ($302,00... 阅读全帖
m******1
发帖数: 19713
29
Man Sentenced to Life for Murder of Gay Teen
By Josh Hinkle
JASON MATTISON JR DANTE PARRISH HAND OUTS X390 | ADVOCATE.COM
Jason Mattison (left) and Dante Parrish
Dante Parrish was sentenced to life in prison Tuesday after being convicted
of the murder of gay 15-year-old Jason Mattison.
In 2009, Mattison was found dead in a house in the eastern section of
Baltimore. His body was in a closet, and he had a pillowcase shoved in his
mouth. His throat was cut, and he had been sexually assaulted, accor... 阅读全帖
l****z
发帖数: 29846
30
来自主题: USANews版 - Ultimate Justice
Posted by Jay Tea
Published: July 4, 2011 - 10:15 AM
This day, the 235th anniversary of the signing of the Declaration of
Independence and the day we consider our nation's "birthday," seems an
appropriate topic to discuss a question that has possibly brought up more
Constitutional questions than any other:
The death penalty.
As odd as it sounds for such a weighty matter, I really don't have any
strong feelings on the matter. It's almost purely an intellectual issue for
me; I don't have a lot of ... 阅读全帖
l****z
发帖数: 29846
31
RENO (AP) — Ex-Nevada power broker Harvey Whittemore admitted he was "
arrogant and naive" but insisted "I'm not greedy" before a judge sentenced
him Monday to two years in prison for funneling more than $130,000 in
illegal campaign funds to Sen. Harry Reid's re-election committee in 2007.
U.S. District Court Judge Larry Hicks also ordered Whittemore to pay $100,
000 in fines for his three felony convictions and serve 100 hours community
service upon his release from a yet-to-be determined priso... 阅读全帖
l****z
发帖数: 29846
32
Iran Executes Two for ‘Perversion’
Third dealt death sentence for ‘insulting the prophet’
BY: Adam Kredo
March 3, 2014 11:45 am
Iran executed two gay men on Sunday for the crime of “perversion” and has
sentenced a third individual to death for “insulting the prophet,”
according to human rights activists tracking the situation.
The head of Iran’s judiciary department in the northern city of Rasht
announced on Sunday that two homosexual men had been executed for “
perversion,” which is consider... 阅读全帖
T*********I
发帖数: 10729
33
匹兹堡
September 2012
A leaked video made by another Millvale employee showed Murphy using a stun
gun on a shirtless Smith while he was handcuffed in the police station.
Smith had been arrested for public drunkenness.
...
大陪审团认为应该起诉
A grand jury has indicted a Millvale police officer who used a stun gun on a
handcuffed suspect.
...
审判结果:
PITTSBURGH - After deliberating approximately four hours, a federal jury
found Nicole Murphy guilty of deprivation of rights under color of law,
United States Atto... 阅读全帖
l****z
发帖数: 29846
34
来自主题: USANews版 - 康州法院说死刑判决是违宪
The state supreme court in Connecticut has just decided that the death
penalty is a violation of the state constitution and has put an end to the
state’s death row sparing the lives of 11 inmates sentenced to die, reports
say.
In a close 4-3 vote the court decided that the death penalty was illegal and
that decision allowed all inmates sentenced to death before recent
legislation ending the death penalty to escape their sentence.
Connecticut Supreme Court Justice Richard Palmer wrote for the... 阅读全帖
l****z
发帖数: 29846
35
Elusive crime wave data shows frightening toll of illegal immigrant
criminals
By Malia ZimmermanPublished September 16, 2015
The federal government can tell you how many "Native Hawaiian or Other
Pacific Islanders" stole a car, the precise number of "American Indian or
Alaska Natives" who were arrested for vagrancy or how many whites were
busted for counterfeiting in any given year. But the government agencies
that crunch crime numbers are utterly unable -- or unwilling -- to pinpoint
for the pu... 阅读全帖
j****3
发帖数: 2836
36
非移的平均犯罪比例比西裔总体平均又高多了。
FoxNews.com did review reports from immigration reform groups and various
government agencies, including the U.S. Census Bureau, U.S. Sentencing
Commission, Immigration and Customs Enforcement, the Government
Accountability Office, the Bureau of Justice Statistics and several state
and county correctional departments. Statistics show the estimated 11.7
million illegal immigrants in the U.S. account for 13.6 percent of all
offenders sentenced for crimes committed in the U.S.... 阅读全帖
f****d
发帖数: 612
37
http://abcnews.go.com/US/wireStory/probation-sentence-dui-wreck-stirs-ire-21188282
A North Texas teen from an affluent family was sentenced to probation this
week after he killed four pedestrians when he lost control of his speeding
pickup truck while driving drunk, a punishment that outraged the victims'
families and left prosecutors disappointed.
The 16-year-old boy was sentenced Tuesday in a Fort Worth juvenile court to
10 years of probation after he confessed to intoxication manslaughter in ... 阅读全帖
H****y
发帖数: 2992
38
来自主题: Faculty版 - On Procrastination
On Procrastination
“Get it down. Take chances. It may be bad, but it's the only way you can do
anything really good.” (William Faulkner)
It doesn’t feel good, right? The guilt, the self-contempt, when you are
replying non-urgent emails, perfecting powerpoints, checking online news,
while knowing well that you have this impending deadline for an important
project you haven’t even started. Despite all the grand excuses, you knew
what this is all about and loath yourself for ... 阅读全帖
H****y
发帖数: 2992
39
来自主题: Faculty版 - On Procrastination
On Procrastination
“Get it down. Take chances. It may be bad, but it's the only way you can do
anything really good.” (William Faulkner)
It doesn’t feel good, right? The guilt, the self-contempt, when you are
replying non-urgent emails, perfecting powerpoints, checking online news,
while knowing well that you have this impending deadline for an important
project you haven’t even started. Despite all the grand excuses, you knew
what this is all about and loath yourself for ... 阅读全帖
p*****p
发帖数: 379
40
来自主题: JobHunting版 - Leetcode一题(非OJ)
Given N sentences containing lower case letters only, remove all common
phrases from each sentence. A common phrase is defined as three or more
consecutive words that appears in all sentences.
For example,
S1 = "q a b c d"
S2 = "a b c d e"
The only common phrase is "a b c d", so the sentences become:
S1 = "q"
S2 = "e"
You may assume N ≤ 100, and each sentence could contain millions of words.
没什么好的想法,大拿们讲讲思路?
b*********t
发帖数: 170
41
来自主题: JobHunting版 - 借人气请教个G题
trie建好之后只知道每个word在哪些sentence出现过,要知道哪两个sentence的共同
word最多,还是要再遍历一遍。而且还要考虑sentence里面有word重复的情况。
我用hashmap做了一下,复杂度是O(n^2 * k), n是sentence个数,k是sentence长度
。感觉应该有更快的算法。
b*****n
发帖数: 618
42
来自主题: JobHunting版 - map reduce word count
我不会pig,这个如果用mapreduce还是可以的,因为sentence number必须要读完整个
file才知道,所以可能需要一个自己写custom inputformat,在算split的时候需要先
把整个file读一遍,每个split不仅要有offset信息还要有sentence #的起始信息,然
后每个不同的recordreader读出来的结果就可以让sentence #做key,sentence内容做
value了。
如果一开始把文件完整读一下不想单机做的话,也许可能的solution是用两个
mapreduce,第一个mapreduce先把每个split的sentence的数量算出来,然后第二个
mapreduce利用第一个的结果,比如放到distributed cache里面,然后仍然需要自己写
一个custom inputformat。。不过就是节省了第一次读完整文件的时间。
暂时就想到这么多。。
h*****i
发帖数: 1017
43
来自主题: JobHunting版 - 问两个算法的问题。
1)generate sentences similar to a given sentence.
Given a sentence (sequence of words), return a list of all possible
alternative sentences of the same length, where each pair of adjacent
words also occurs in the original sentence.
A simple example 'the cat and the mouse':
'and the cat and the', 'the cat and the mouse', 'the cat and the cat', 'cat
and the cat and'
这个用全排列,那复杂度太高了。
2)A palindrome is a string that is equal to its reverse (e.g., 'ana').
Compute the length of the longest pal... 阅读全帖
j****n
发帖数: 4358
44
来自主题: JobHunting版 - 迟来的正义 (转载)
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: hunter2 (hunter), 信区: SanFrancisco
标 题: 迟来的正义
发信站: BBS 未名空间站 (Mon Jan 1 11:01:15 2018, 美东)
圣荷西抓了一个icc女老印。很好奇,巴马时期怎么没人整治这种事情??
https://www.justice.gov/usao-ndca/pr/san-jose-businesswoman-sentenced-prison
-high-technology-worker-visa-fraud
San Jose Businesswoman Sentenced To Prison For High-Technology Worker Visa
Fraud
SAN JOSE - San Jose businesswoman Sridevi Aiyaswamy was sentenced to 13
months in prison today as a result of her involvement in executing an H-1... 阅读全帖
G***G
发帖数: 16778
45
what is the structure of the last sentence you said?
Could you please type the transcipt for the last sentence?
If you were saying, 'don't forget to subscribe, like it, favorite it,
and share it', you use 'like', 'favorite' and 'share' as verbs
which are in parallel position with the verb 'subscribe'.
did you say, "Don't forget to subscribe. Like it, favorite it, and
share it?" In this situation, there are two sentences.
I still don't know what is your original sentence although I have
underst... 阅读全帖
m**********g
发帖数: 981
46
看看这些
Cognitive Milestones
By one:
follows moving object with eyes
recognizes differences among people; responds to strangers by crying or
staring
responds to and imitates facial expressions of others
responds to very simple directions
imitates gestures and actions
puts small objects in and out of container with intention
Between one and two:
imitates actions and words of adults
understands and follows simple, familiar directions
responds to words or co... 阅读全帖
l*********e
发帖数: 5385
47
☆─────────────────────────────────────☆
wahaha2013 (娃哈哈啊) 于 (Sun Jul 14 00:29:12 2013, 美东) 提到:
我家宝宝刚满一周岁。不会用手指指东西,不会挥手再见,不会show东西给我看,不会
传东西给我。
请问如何教会啊,我天天教,就是不会啊。我教别的,比如谢谢,挠痒等,很快就会。
就是不会这几样。而这又是最重要的。用什么方法呢?我和儿医说出了我的顾虑,是不
是autism啊?儿医说等18个月再看。
我都等不急了。
真诚请教,怎么教会宝宝啊?急啊急。
拜谢各位!!!
☆─────────────────────────────────────☆
wahaha2013 (娃哈哈啊) 于 (Sun Jul 14 22:54:04 2013, 美东) 提到:
顶顶啊,没人回复我啊
☆─────────────────────────────────────☆
snowshine (snowshine) 于 (Sun Jul 14 23:13:25 2013, 美东) 提到:
我怎么觉... 阅读全帖
W******4
发帖数: 43
48
来自主题: Parenting版 - 中文阅读材料:猴哥的烦恼
课文:
小猴哥哥是森林里最聪明的人。小猴哥哥有一个小猴弟弟,要多笨有多笨。小猴哥哥常
为笨头呆脑的弟弟叹气:“弟弟呀弟弟,你什么时候才能变聪明点儿呢!”
森林中的小动物遇到什么难题,都来找小猴哥哥解决。比如小猪要盖房子啦,黄鹏要学
五线谱啦,熊猫想学画画啦⋯⋯小猴哥哥总是一笑说:“这个简单哩!”就
把房子怎么盖,五线谱怎么识,画上怎样着颜色,都告诉了小动物们。
小猪便专心地学起盖房子来,黄鹏也每天起得早早的练歌喉,熊猫也每天都到野外去画
画⋯⋯
有一天,小猴弟弟也出了门,不知干什么去了。只有小猴哥哥仍然呆在家里,喝茶听着
音乐,躺在床上闭目养神。过了些时候,小猴哥哥觉得小动物们好久没来他家了。他们
都干什么去了呢?
后来,小猴哥哥拿起新出版的晚报,才发现,原来小猪已经成了建筑师,黄鹏成了红歌
星,熊猫也成了画家⋯⋯就连他的笨头呆脑的小猴弟弟,也开起诊所当起医
生来。
“原来他们有多笨呀,可现在都成了名人。我呢?我这么聪明却什么也没干成,这到底
是为什么呢?”聪明的小猴哥哥怎么也想不明白。
生字、词组(Words a... 阅读全帖
k********8
发帖数: 7948
49
http://dealbook.nytimes.com/2012/06/25/a-con-man-who-lives-betw
Former hedge fund manager Samuel Israel III after a hearing in 2008 in
Massachusetts, ordering him to return to New York.
BUTNER, N.C. — “I’m a proven liar. Don’t believe anything I say.”
That was what Samuel Israel III told me last week. He is the hedge fund
manager convicted of running a $450 million Ponzi scheme who faked his own
suicide in the summer of 2008 to avoid his prison sentence before turning
himself in after a worldwid... 阅读全帖
W***n
发帖数: 11530
50
Enron Scandal: The Fall of a Wall Street Darling
Enron Corp. is a company that reached dramatic heights, only to face a
dizzying collapse. The story ends with the bankruptcy of one of America's
largest corporations. Enron's collapse affected the lives of thousands of
employees and shook Wall Street to its core. At Enron's peak, its shares
were worth $90.75, but after the company declared bankruptcy on December 2,
2001, they plummeted to $0.67 by January 2002. To this day, many wonder how
such a ... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)