|
|
|
|
A****L 发帖数: 138 | 5 public class WordLadderII {
public class Ladder { //Define Ladder class it's important
public Ladder parent;
public String word;
public Ladder(Ladder prev,String w) {parent=prev;word=w;}
}
public ArrayList> findLadders(String start, String end
, HashSet dict) {
ArrayList> ladders = new ArrayList
String>>();
Ladder ladder = new Ladder(null,end); //Here we look from end to
start ... 阅读全帖 |
|
b*********k 发帖数: 35031 | 6 ☆─────────────────────────────────────☆
KV (从善如流,敢做敢当) 于 (Thu Apr 25 08:50:24 2013, 美东) 提到:
有个很有名的实验,把一群猴子关在笼子里,上面挂一香蕉,每当猴子试图拿香蕉的时
候,就对所有的猴子喷高压水柱,几次下来,所有猴子都不去拿香蕉了,把其中一只猴
子换走,来一只新猴子,新猴子试图拿香蕉时候,所有猴子一起痛扁它,再换一只猴子
进来,试图拿香蕉其他猴子就痛扁,前面换进来的猴子扁的最狠,把猴子按这种方式,
一只只换走,直到所有的都是新猴子,香蕉高悬,猴子若无其事,想拿的就会被痛扁,
高压水柱再没用过。
Law and Order保证的是个体和社会的利益,这个框架下法律面前人人平等,法律和秩
序的根本,是保证每个团体/社会中每一个个体的权利和义务,为大多数人利益服务的
规则,不是法律,这个不是民主规则中的少数服从多数,这个叫做迫害。
zl案件,你抛弃的是zl个人,维护一个所谓和谐,引用你的内容
“法的核心是秩序,而秩序是对每个人的基本保障。破坏秩序,威胁的是每个人的安危
。 挑战秩序,就是挑战... 阅读全帖 |
|
A****L 发帖数: 138 | 7 谢谢你的意见。 我也肯定是同意效率要高才行的。我的意思是在保证效率的前提下,
越简单越好。 具体到这题,基本前提就是能pass OJ。另外要是代码让人容易理解就更
好了。 我的code 的思路就是 一层一层 推进, 如果在到达某层找到了 path 那么到
这层 所有可行的path 都是最短的,然后就直接返回结果了。具体就是下面这个语句。
if(ladders.size()>0) return ladders;
//if found then they are the shortest distance return
虽然 while 终止条件是 empty 但是某一层找到了就返回结果了。
每个ladder 只记录它是从哪个ladder 下来的。 如果一个ladder 下来有很多
children ladder, 那么这个ladder 可能出现在很多path 里,但是这里不会重新产生
ladder object, 只有一个ladder object。 因为所有的children 都指向了它(同一
个object)。
空间存储上,如果clone 记录visited 那么一直是会存在两... 阅读全帖 |
|
n********e 发帖数: 1630 | 8 大家好,
有个western transfer的technical的问题。我们lab用的是一个很笨重的biorad的semi
-dry transfer 仪器。我刚开始做western,transfer的效率总是很差。
protein ladder用的是5ul,
manual上推荐mini gel,8.5cm x 5.5 cm,用10v-15v,30min
我开始用过25v,总是看到有的ladder 到了下面的filter paper上面,同时还有ladder
在gel上面,如果时间长点,gel上就看不到ladder。
后来我用15v,推荐的,40min-60min,还是看到有ladder在gel上面,但是没有在
filter paper上面。说明这个voltage很合适的,不会over transfer。但是高分子量的
ladder, 50kd以上的,总是转不完全。
我的protein只有20kd,理论上根据ladder来看,应该都转过去了。可是我的western跟
同样的sample,在其他lab做的,结果就不一样。抗体都是按照他们的catalog number
买的。但是dete... 阅读全帖 |
|
d****n 发帖数: 12461 | 9 Little Giant Sales Breakup by Ladder Height:
Model 13: 5%
Model 17: 30%
Model 22: 45%
Model 26: 20%
Q #4: I can't decide on which size ladder I need. What size do you recommend
?
A: It is difficult to recommend a particular size because everyone has
different needs. Look over the following size comparisons and you should get
a good idea which ladder might work out best for you.
If you're still not sure which size you should get, remember that it is
better to overestimate your ladder height needs... 阅读全帖 |
|
e**o 发帖数: 5509 | 10 网上不是都传说,当年学习不好的都当老板,发大财了。
相反学习好的都是有份体面工作而已。
而且新闻上或者生活中,全国的那些民营企业家都不是学习好的背景。
我怎么感觉国内才是multi ladder,而美国才是single ladder.
美国才是创业挺难的,各行各业都有巨头垄断,只能在Niche市场上打主意,
绝大部分美国人也就是大学-公司-高层领导的路子,之后才从公司出来创业,但很少吧。
当然美国民营老板倒是比国内学历高多了,一般都是大学毕业,创业都是高科技创业。
但是国内创业,高科技,低科技,大众市场,小众市场也都有,
很多都是做了几年销售,发现了市场,积攒了关系,就出来自己创业了,这才是百花齐
放。
不知道你指的ladder是哪里的ladder,感觉你只是说在单位里向上爬。
这种情况下美国公司也是single ladder,除非你跳槽。
在美国政府里混也是一样,职业发展路线一眼看到头。
当然美国有个好处,很多民营老板可以参加竞选,直接进入政界当地方官。
国内这个ladder倒是没有,不过能当人大代表,进政协,不能直接当政。 |
|
c******t 发帖数: 1733 | 11 David whitley's CMS experience:
On December 4th, 2004 I competed in a Girevoy Sport meet and became the
first native-born American to achieve the rank of Candidate for Master of
Sports, or CMS. I did this by completing 71 reps in the Long Cycle Clean and
Jerk with two 24kg kettlebells in the 90kg + bodyweight category. In this
article I would like to share some of the tools and strategies I have used
for increasing numbers in GS.
Technique
When talking about GS, you are talking about technique. ... 阅读全帖 |
|
c******t 发帖数: 1733 | 12 David whitley's CMS experience:
On December 4th, 2004 I competed in a Girevoy Sport meet and became the
first native-born American to achieve the rank of Candidate for Master of
Sports, or CMS. I did this by completing 71 reps in the Long Cycle Clean and
Jerk with two 24kg kettlebells in the 90kg + bodyweight category. In this
article I would like to share some of the tools and strategies I have used
for increasing numbers in GS.
Technique
When talking about GS, you are talking about technique. ... 阅读全帖 |
|
发帖数: 1 | 13 我看了这篇2009年的CBS的文章,文章讲了一个所谓的机会成本“opportunity cost"
,文章也提到laddered bond 不能completely 回避利率的风险. 理论上都没错. 但是
仍然不能否认laddered bond 🈶️明确的现金流而且这个现金流不受利
率变动的任何影响. 这个明确的现金流對一個保守的投資者是很重要的. 尤其是利率
有可能进入一个几十年上涨期的大环境下, 不想現金流受到利率變化的影響。另外,
難道bond fund 沒有這個 opportunity cost? 至于“ misconception debunked so
many times...... mentally accounting....... the loss had already occurred"
是一顶”大帽子“. 希望可以听到更多实际的分析. 不同的观点是好的,大家可以一
起探讨.
" better to hold a low cost bond fund whose effective maturity matches y... 阅读全帖 |
|
s*******h 发帖数: 1361 | 14 I see a few misunderstandings about investing, and in particular fixed
income investing in this post. Some have been debunked, but others are not
clarified and more are created in the replies. Hope my two cents can help op
and others with a better understanding.
1) We are in a low rates environment, and Fed says rates will surely go up
in the next year, in the next 10 years and even maybe in the next 100 years.
Therefore if I buy a bond (or a bond fund) and hold it, my position will
lose value w... 阅读全帖 |
|
发帖数: 1 | 15 我看了这篇2009年的CBS的文章,文章讲了一个所谓的机会成本“opportunity cost"
,文章也提到laddered bond 不能completely 回避利率的风险. 理论上都没错. 但是
仍然不能否认laddered bond 🈶️明确的现金流而且这个现金流不受利
率变动的任何影响. 这个明确的现金流對一個保守的投資者是很重要的. 尤其是利率
有可能进入一个几十年上涨期的大环境下, 不想現金流受到利率變化的影響。另外,
難道bond fund 沒有這個 opportunity cost? 至于“ misconception debunked so
many times...... mentally accounting....... the loss had already occurred"
是一顶”大帽子“. 希望可以听到更多实际的分析. 不同的观点是好的,大家可以一
起探讨.
" better to hold a low cost bond fund whose effective maturity matches y... 阅读全帖 |
|
s*******h 发帖数: 1361 | 16 I see a few misunderstandings about investing, and in particular fixed
income investing in this post. Some have been debunked, but others are not
clarified and more are created in the replies. Hope my two cents can help op
and others with a better understanding.
1) We are in a low rates environment, and Fed says rates will surely go up
in the next year, in the next 10 years and even maybe in the next 100 years.
Therefore if I buy a bond (or a bond fund) and hold it, my position will
lose value w... 阅读全帖 |
|
C*******d 发帖数: 15836 | 17 You can tie the ladder to patio rail, tree, car wheel, or wherever can hold
the ladder if it falls.
It is not very easy to raise, put down, and move the ladder. At least two
people are needed for that job for us.
I have to say that working on top of a ladder near second story roof is the
only thing in my house maintenance experience that makes me feel so close to
death or serious injury. That's why ladders cause most death for home
maintenance each year as I read. So you should be extremely care |
|
C*******d 发帖数: 15836 | 18 Your conclusion is not correct. For 28' ladder, there are two single ladder
of 14' each. You need to extend the two to get higher length. To do that,
you need to have about 3' overlap between them. Then you need about 1-2'
ladder above the roof line (more if you want to actually climb on the roof).
In addition, your ladder won't be straight up, it will be tilted. As such,
for 22' roof, you almost sure will need 28' ladder. |
|
a**********y 发帖数: 930 | 19 usually you need two ladders, one should be either multi-purpose ladder or
extension ladder, another is everyday ladder.
For everyday ladder, 6' is enough, BF in Lowes the 6' Werner is only $18.99,
now HD "onsales" for $59.
Fore multi-purpose, either little giant or Werner 22' is pretty good |
|
D******r 发帖数: 5237 | 20 还不相信,lowes网上werner员工贴的总可以吧
The MT-22 ladder is 19 feet tall when in the straight, fully extended
position. When in the step ladder height, it has a maximum height of 9 feet.
Other options to reach this height would be a 14 foot step ladder or an
extension trestle ladder.
Posted by WernerCustomerCare
5尺那个是另外一回事,本身大概就有5尺。Telescope ladders的长度是虚的 |
|
e**o 发帖数: 5509 | 21 其实你的那个single ladder和multi ladder就是用来说明人的交际能力而已。
比较open mind,善于交际的人,就算从事个人运动也能交到朋友,成为领军人物的。
害羞的人,猥琐,龌龊的人就算从事团体运动也是交不到朋友。
比如说乒乓球,游泳啥的。大方的人,可能打完球邀请你出去喝一杯,聊聊天。
如果你是个害羞的人就会拒绝了。人家下次只是和你打球而已。
相反愿意交朋友的人,就会答应下来,下次有机会再回请对方。
就算是游泳,看见面熟的和你打招呼,你说个hi就拉到了,人家也只能和你只说hi了。
老美就能顺着这个hi,一直聊下去,然后运动完出去喝两杯。
再拿团体运动为例子,踢完球,人家邀请你去他家开party,吸大麻,泡妞,集体聚餐。
如果你是个好孩子,书呆子,认为这是不好的事情,就借口说回家写作业了,对方下次就
不邀请你了。或者你舍不得钱,认为太浪费了,就说没时间,然后回家打游戏省钱去了。
或者你去了几次,人家一直请你吃饭,一直和人家美女AA。人家慢慢也不会邀请你了。
为啥老中的孩子交际能力差,没有领导能力。其实都是父母的言传身教。
老中普遍没有用于交际的预算和时间,或者远离... 阅读全帖 |
|
R**i 发帖数: 7994 | 22 Volley of the Santas is coming to town.
A special open gym event on Friday night 12/16 to celebrate the holidays.
Santa requirements: Everyone participating (Santas) must be dressed in Red,
White and Black (Santa like), exceptions for sneakers and undergarments :-)
For example: Red and white shirt and black shorts would work. Of course
traditional Santa suits would work. Come as a team of Santas or a single
Santa and join other single Santas to form a team. There is scrooge open gym
for non-S... 阅读全帖 |
|
c******t 发帖数: 1733 | 23 2*53lb kb: Clean-jerk-overhead squat-sots press 1-3-5-2-4-6 ladder
53lb, 44lb kb: two hands anyhow 1-2-3-4-5 ladder each side
2*53lb kb: push up-burpee-snatch-front squat 1-2-3-4-5 ladder
53lb kb: snatch-military press-Turkish getup-windmill 1-2-3-4-5 ladder
53lb kb: high pull- flip-catch-squat-pistol 1-3-5-2-4 ladder
每次combo之前,都想找个借口不做,过程中总想找点理由偷工减料,实在是太难了 |
|
D*****r 发帖数: 6791 | 24 http://www.gutenberg.org/files/37726/37726-h/37726-h.htm
IN GOD'S WAY
SCHOOL-DAYS
I.
In the melting snow on the hill-side by the sea, in the last rays of the
evening sun, stood a boy of fourteen, awestruck. He looked toward the west,
out across the sea; he looked toward the east, over town and shore and the
broad hills; in the background still higher peaks rose far away in the clear
sky.
The storm had lasted a long time; it had been more terrible, too, than any
the old people could remember. In ... 阅读全帖 |
|
g****t 发帖数: 31659 | 25 你太小看functional manager了。很多functional manager本身就是技术超强的
distinguished engineer.
这玩意儿你啥都不懂.跟你说也说不清楚。
我只说一个。技术路线不是你理解的所谓的
纯技术。在公司里,赚不到钱的“技术”那就不是
技术。一般做的好的,那都是合作能力,
市场眼光,基本技术,各方面都超强的。
没这些基本能力,你没办法弄出来销售额。
tech ladder不可能往上走的。学校评职称
主要也是看grant,更何况公司呢。
management ladder和tech ladder归根结底都是看
revenue。不过是路径不同而已。tech ladder接触市场客户和其他需要合作的人的时间
说不定更多,情商的要求说不定更高。要是跟客户话都说不清楚,
跟领导也说不清楚自己的贡献,那是没办法走tech ladder的。 |
|
发帖数: 1 | 26 美国每年因为圣诞节给房子挂彩灯,从梯子上摔下来的不要太多。
Falls from ladders Statistics
According to the World Health Organization, the United States leads the
world in ladder deaths. Each year, there are more than 164,000 emergency
room-treated injuries and 300 deaths in the U.S. that are caused by falls
from ladders. Most ladder deaths are from falls of 10 feet or less.
我的宗旨是舍财留命。 |
|
s********i 发帖数: 17328 | 27 唉,几千里的边境线,几个人根本就不是目标。
After bus trips through Central America and Mexico, the family finally
reached Mexicali, a major Mexican city across from Calexico, California.
In a recent interview, Alemán, 31, described what happened there.
A migrant smuggler the family had retained took them to a segment of the
border wall separating the two cities last August.
“He placed a portable ladder on the Mexican side, and a similar one on the
American side,” Alemán recalled.
Marbyn, her husband, was the first t... 阅读全帖 |
|
m*********r 发帖数: 1797 | 28 猎头发的,就是好奇,他家Director 和senior staff member 一个级别?
岂不是一个lab 几十号人都是Director?
Lenovo has manager ladder and technical ladder for researcher.This position
is Band10,manager ladder title is Director,technical ladder title is Senior
Staff Menber.
The lab name is Image&Visual Computing Lab |
|
c*******2 发帖数: 60 | 29 说说我自己的看法.
首先我同意三楼的, 代码长短不是最重要的, 还得看效率.
楼主的代码确实短, 想必花了心思压缩.
但我觉得有几个问题.
一个问题是每个Ladder object有只有一个prev指针.
这种情况下, 如果某个单词在很多个ladder里面出现的话, 必须要构造很多个Ladder
objects. 不知这样的空间效率如何.
第二个问题是第一个while循环的终止条件是queue是empty的, 如果我没理解错的话.
这样即使是找到了start, 循环还会继续下去. 因为楼主在dict里把出现过的单词都
remove了, 循环必定会终止而且也不会出现更长的ladder. 算法是正确的, 但终止时间
可能会晚了点. 应该在找到start后就可以终止下一个level的循环了.
第三个问题是修改了dict...这个不重要, 可以像三楼那样clone一个就行. 我个人是用
了个hashmap保存已经visit过的word, 因为我的这个hashmap还有其他用处,所以也就顺
便用在这里, 没有clone.
ps三楼: 我看你在你的帖子里说你的代码跑大数据是485ms. 我用我的代... 阅读全帖 |
|
|
C*******d 发帖数: 15836 | 31 No, it is not safe at all!
It is a work that get you killed or crippled easily if something goes wrong
and in my opinion it is the most dangerous work that you can do for your
house.
My roof is not that steep but still it is quite slippery. so I usually have
to lay on the roof and crawl instead of walk. I usually tie my ladder on
both sides and connect them with some strong holds so that the ladder won't
sway sideways. Then I put one person to hold the bottom of the ladder. That
way the ladder s |
|
w******t 发帖数: 16937 | 32 好啊,下面贴几个,楼主根据自己爬房子的难易程度和未来10年内的爬高需求,还有预
算,挑一个吧。
1) Werner 26 ft. Aluminum Telescoping Multi-Position Ladder 300 lb. Load
Capacity (Type IA Duty Rating) $264.00
2) Werner 10 ft. Aluminum Step Ladder 300 lb. Load Capacity (Type IA Duty
Rating) $168.00
3) Werner 28 ft. Fiberglass Extension Ladder 300 lb. Load Capacity (Type IA
Duty Rating) $319.00
4) Werner Aluminum Ladder 300 lb. Load Capacity (Type IA Duty Rating ) $38.
00 |
|
x**8 发帖数: 4844 | 33 俺有两个。一个Werner 8' fiberglass step ladder, 一个Werner 20' Aluminum
Extension Ladder.
都很普通,也都用得着,便宜(长的一百三十刀左右)。矮的梯子最好是fiberglass的
,绝缘,结实,站在上面捣鼓电线心不慌。Aluminum的轻一半以上,搬起来方便。
fiberglass的20‘以上的extension ladder都6、7十磅,又老长,搬着费劲。
budget充足可以考虑Telescoping Multi-position Ladder。俺那个20‘的有几次用的
时候还不够长。估计24‘或26’好很多,不过就重了,也贵。
长梯子还有个很有用的附件俗称“牛角”,是绑在顶端防止梯子横着滑动的,可以考虑
买一个。
最后就是你没有皮卡的话买了也拿不回来,得考虑运输问题。俺是当时搭contractor的
车顺便买回来的。 |
|
M********s 发帖数: 24729 | 34 这次大雨比刮台风还可怕,死了五个,被水中车内捞起的过百,现在有的学区还在关门
中,同志们,看看有什么好买的吧,特别是家里老弱病残妇幼比较多的更要加小心啦
Emergency Preparation Supplies
Sales Tax Holiday
April 23 – 25, 2016
You can purchase certain emergency preparation supplies tax free during the
2016 Emergency Preparation Supplies Sales Tax Holiday. There is no limit on
the number of qualifying items you can purchase, and you do not need to
issue an exemption certificate to claim the exemption.
This year’s holiday begins at 12:01 a.m. on Saturday, April 23, and ends at... 阅读全帖 |
|
m*********r 发帖数: 1797 | 35 【 以下文字转载自 JobHunting 讨论区 】
发信人: minicoooper (god bless us!), 信区: JobHunting
标 题: 有人了解lenovo hk lab 么?
发信站: BBS 未名空间站 (Wed Mar 27 07:21:46 2013, 美东)
猎头发的,就是好奇,他家Director 和senior staff member 一个级别?
岂不是一个lab 几十号人都是Director?
Lenovo has manager ladder and technical ladder for researcher.This position
is Band10,manager ladder title is Director,technical ladder title is Senior
Staff Menber.
The lab name is Image&Visual Computing Lab |
|
f**********n 发帖数: 29853 | 36 haha, good to hear you got an helper.
tip2 means you can always use one of your hands to grab the ladder, or even
your upper body to lean on the ladder. put it in other words, never put your
foot on the top 3 or 4 steps.
I have a ladder longer than yours, I tried to stand on the top 2 steps once
to paint a chimney. that's very exciting and i only tried it for one second.
then I used a pipe to extend the brush, it is awkward to use, but much
safer.
good luck. even if you got a helper, still make ... 阅读全帖 |
|
f**********n 发帖数: 29853 | 37 haha, good to hear you got an helper.
tip2 means you can always use one of your hands to grab the ladder, or even
your upper body to lean on the ladder. put it in other words, never put your
foot on the top 3 or 4 steps.
I have a ladder longer than yours, I tried to stand on the top 2 steps once
to paint a chimney. that's very exciting and i only tried it for one second.
then I used a pipe to extend the brush, it is awkward to use, but much
safer.
good luck. even if you got a helper, still make ... 阅读全帖 |
|
|
p*********7 发帖数: 57 | 39 真不错
我前面说的无厘头道理 例如青春饭 没前途 玻璃天花板
你又给加了一条
老中没人提拔 美国社会专门给老中设卡 不让你提拔
正是由于这些自己给自己设的无厘头逻辑
才有这帮人瞎折腾 老中爬到领导层的才比较少 才越来越没有career ladder
烙印就不会操心你这种破事。烙印们最开始想必也是没有career ladder的。这片大陆
上最早只有印地安人 没有印度人
他们才不管自己有没有career ladder 都尽量把自己工作做好
有些找到ladder的 或者狗屎运的 成了大领导
那些没有的 成了资深员工 技术骨干。 either都比瞎折腾 一会儿海归 一会儿归海的
人要强
这个世界是很公平的。 你害怕你坚持不到领导岗位,害怕不被待见, 想着转行折腾
, 可烙印不怕。人家不论能不能升到领导都努力去做。 最终实在没升到,也多少是个
技术骨干, 怎么不比你瞎折腾的强。
老中也是一样。俺还是喜欢和少数坚定做自己 爬到领导岗位的老中玩
你喜欢瞎折腾的 你去佩服他们的勇气去吧 |
|
M********s 发帖数: 24729 | 40 Emergency Preparation Supplies
Sales Tax Holiday
April 23 – 25, 2016
You can purchase certain emergency preparation supplies tax free during the
2016 Emergency Preparation Supplies Sales Tax Holiday. There is no limit on
the number of qualifying items you can purchase, and you do not need to
issue an exemption certificate to claim the exemption.
This year’s holiday begins at 12:01 a.m. on Saturday, April 23, and ends at
midnight on Monday, April 25.
These emergency preparation supplies qualify f... 阅读全帖 |
|
G******e 发帖数: 1606 | 41 I think the incentive is bad for this ladder because it is the same as
punishment for those that play less. Many people may not have much time to
play, and their rank will getting too low. These people may not want to join
this ladder any more. We want to attract as many players as possible to
play in this ladder. As far as they can accept at least one challenge (most
people can do that, I believe), they should be treated fare.
With many people in this ladder, it is going to last for long time. |
|
q*****n 发帖数: 698 | 42 Title: A Tale of Two Qiqis
Author: mukund
Qiqi recently won the highly-competitive singles ping-pong ladder. Most
people expected him to make the quarter finals. But he won it all! And how!
His modus operandi involved theoretical research, data-driven research, game
-theory, and execution (despite failing systems). An act worthy of
publication. (Qiqi's cover is already blown, so this article does not
divulge anything that the ping-pong mafia already does not know)
Qiqi joined Google a about four... 阅读全帖 |
|