由买买提看人间百态

topics

全部话题 - 话题: skipping
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
J**********7
发帖数: 2619
1
来自主题: Fishing版 - 几个skip视频。
需要. 在岸上skip到dock下.机会少.
h******1
发帖数: 1930
2
来自主题: Fishing版 - 【献丑】GoPro skipping练习
skipping !!
你得点开看高清的。
x*******1
发帖数: 28835
3
来自主题: Football版 - 上个礼拜stephen vs skip @ESPN
skip说乌鸦去不了季后赛。 而且大骂 joe flacco. 说have #5 is a bad thing. 双方
大骂出口
x*******1
发帖数: 28835
4
来自主题: Football版 - Richard Sherman trashing Skip Bayless
这2货,真是espn 小丑,秀下陷没有程度。a smith, 和skip
x*******1
发帖数: 28835
5
来自主题: Football版 - Richard Sherman trashing Skip Bayless
http://www.youtube.com/watch?v=CtiXhBHBN8g
skip说ravens season is done. no way to playoff, 结果夺冠了。 脸都被打肿了
l*x
发帖数: 14021
6
来自主题: Football版 - Skip Bayless
I know many of you hate Skip Bayless' big mouth, myself included. He was so
annoying. But one time, he was totally trashed by Sherman in an interview.
That was the first time I was so impressed by Sherman. And literally, my jaw
just dropped.
He is also a huge fan of Tom Brady. And I believe he voted Brady for MVP
every season. (Not that I don't like Brady, nor I didn't agree with what he
said at all)
OK, and that's all I know about him. All these aside, hate or love, he was
recently diagnosed wi... 阅读全帖
s*****o
发帖数: 22187
7
来自主题: Football版 - Skip Bayless
Skip is way better than Steve imho. Wish him best of luck.

so
jaw
he
l******u
发帖数: 2401
8
来自主题: Football版 - Skip Bayless
怎么我搜到的新闻都是 Cancer Diagnosed With Skip Bayless。。。
J*****n
发帖数: 1051
9
Tiger Woods decided Friday to skip the season-opening Mercedes-Benz
Championship, meaning the PGA Tour's "new era in golf" will begin next
week amid old questions about the absence of its biggest star.
Woods, who was skiing with his family last week in Colorado, said he did
not have time to get his game ready and he wanted to spend more time
with his family.
J*****n
发帖数: 1051
10
来自主题: Golf版 - Why Tiger should skip Nissan?
If Tiger Woods is intent on taking the streak as far as it can possibly go,
logic screams out for him to skip Riviera Country Club. The home of the
Nissan is a place that has vexed Woods like no other. He is winless in nine
starts as a professional at the Los Angeles stop on tour. If that's what
Woods decides to do, what would he say to those who suggest he's protecting
the streak? "People can say whatever they want," Woods said. "That's their
opinion. They are entitled to it."
J*****n
发帖数: 1051
11
来自主题: Golf版 - Tiger skips Nissan
It was only the second time that Woods has skipped the Nissan Open, which
gave him his first PGA Tour exemption in 1992 at age 16. It is considered
his hometown tournament because he grew up about 30 miles away in Cypress,
Calif.
it's also the only PGA Tour event he has played at least four times as a
professional without winning.
A******u
发帖数: 1279
12
来自主题: loseweight版 - skip dinner惨败
看了宝妹妹的美食睡眠减肥,决定试一下skip dinner。昨天是休息日,不运动。从中
午12点午餐后,到六点吃了一点蛋白粉。一直忍到9 pm,感觉眼睛都饿绿了。然后把家
里能吃的东西基本上都找来吃了一遍,刷各种碳水蛋白质和脂肪,秒爆正常晚餐,才算
压住饥火。之后还失眠,各种折腾到2am,才勉强睡着。
我以前玩IF都是免早餐。这次试验免晚餐真是惨败。这个怎么破?
c*****h
发帖数: 14923
13
来自主题: loseweight版 - skip dinner惨败
我每天还要加餐呢
skip dinner简直不可想象,除非中午吃太多了,然后晚上又睡得早
D*******e
发帖数: 12862
14
来自主题: Tennis版 - 菠萝也skip红土!
天哪
红土的field是一年比一年越来越weak了耶~
好诱人的法网。。。
我豆能及时康复吗?
豆子你要不也把前面的红土赛事都给skip了算了?给自己的身体更多的休息时间,简单
练一个马德里或者罗马就直接去法网吧?千万别到了法网不能及时复出,把这么大好的
机会给浪费掉了啊。。。
不过又有点儿舍不得萌卡。。。每年的梦启航的地方。。。:)
m**x
发帖数: 1084
15
来自主题: Tennis版 - 菠萝也skip红土!
prestigous有啥用。一年1就一个月的草地。2、3个赛事。场地开始滑得不行、 后面又
秃的不行。 skip grass 的选手不计其数。业余选手打硬地 土场的都挺多、 有几个打
菜地?

:温网人家是四大满贯里面最prestigious的,好不好?
:如果所有网球运动员,只能得到一个满贯,可以调查一下,他们最想得到哪一个?
a******a
发帖数: 68
16
MKE-ORD-PVG, 我可以SKIP MKE,从ORD直接登机否?UA的飞机,多谢
s**********l
发帖数: 8966
17
四代叫ivy, quad, 或者dru
Chip= 自己跟老爹
Skip=自己跟爷爷
Trey=三代同名
五代的话叫做Quincy/Quinton,美国有个总统叫John Quincy Adams, 知道他们家多没
文化了吧。倒霉的是他孩子还叫John Adams,那咋区分呢,只好叫John Adams II,然
后他孙子还叫这个,于是叫John Quincy Adams II。
Z****o
发帖数: 999
18
'Skip' means that he shares his exact name with his grandfather.
'Trip' means his and his father all share a name with his grandfather.
s*****8
发帖数: 606
19
来自主题: _Auto_Fans版 - skip barber 3-day racing school review
刚从skip barber 3-day racing school回来,趁着还有印象,简单写一下自己的感受
和3天的安排,希望能对它感兴趣的人做个参考。
Track - Lime Rock Park
Car - MX5 (车是由pro race driver调的,instructor说悬挂设置大概是前toe out 1
/16,camber 1.75,后toe 0. 偏loose的调教,跟我350Z原厂悬挂比那简直是相当
predictable)
Instructor/students人数 - 3/13
MX5和方程式赛车一起,分两组。每组又分为两小组,所以一共是4组交替跑。
Day 1
上午-基础知识介绍。autox(熟悉车)
下午-跟趾将挡练习(在uphill和west bend之间绕圈练习)。3/4个车跟instructor的
车跑圈(学习线路,练习降档,instructor会不断提速)
Day 2
上午-Rain line和flag介绍。stop box练习(每开一圈停在发车点,instructor会在不
同的弯然后给你feedback)练习时会有rpm限制而且档位要保持一致,... 阅读全帖
w*******y
发帖数: 60932
20
Link:
http://www.skiphop.com/product/saddlebagsale.html
$14 with free shipping using code FREESHIP (regularly $28)
1. One of a pair of pouches hanging across the back of a horse behind the
saddle.
2. A pouch hanging from a saddle or over the rear wheel of a motorcycle or
bicycle.
3. A stylin pouch from Skip Hop that attaches to the sides of nearly any
stroller.
From cowboys to bikers to todays moms and dads the Saddlebag is the perfect
way to add more storage to your mode of infant transport. A... 阅读全帖
d******o
发帖数: 3
21
My daughter's birthday is Jan 2nd, less than 1 month late than the
California cut-off date Dec. 3. Anybody has insight on how to skip level in
public school?
Thanks,
n****d
发帖数: 47
22
来自主题: _IrishFootball版 - Cowboys RB Julius Jones skipping OTAs
Julius Jones is betting on himself. That's not an entirely bad proposition.
Jones, a free agent at the end of the season, has skipped the Cowboys' off-
season workout program and is not participating in organized team activities
(OTA).
So there's no way he gets the benefit of the doubt if anything goes wrong in
training camp. Jones apparently doesn't care.
He believes Bill Parcells made him too robotic of a runner, so he's doing
things his way this time. After all, it's his future on the line.
I
c*********s
发帖数: 63
23
终于弄好了。把下面的存成.bst文件,和Tex文件放在同一个文件夹就可以了。
%%
%% This is file `cellnew.bst',
%% generated with the docstrip utility, by HJ, 03/03/2013.
%%
%% The original source files were:
%%
%% merlin.mbs (with options: `ay,nat,nm-rvvc,nmlm,x10,x0,m10,m0,mcite,mct-1
,mct-x2,keyxyr,blkyear,dt-beg,yr-par,note-yr,atit-u,jttl-rm,thtit-a,vol-it,
vnum-x,volp-com,pp-last,num-xser,jnm-x,btit-rm,bt-rm,add-pub,pub-par,pre-pub
,edby,edbyy,blk-tit,ppx,ed,abr,ednx,xedn,jabr,url,url-blk,em-it,nfss,')
%% ----------------------... 阅读全帖
c*********s
发帖数: 63
24
终于弄好了。把下面的存成.bst文件,和Tex文件放在同一个文件夹就可以了。
%%
%% This is file `cellnew.bst',
%% generated with the docstrip utility, by HJ, 03/03/2013.
%%
%% The original source files were:
%%
%% merlin.mbs (with options: `ay,nat,nm-rvvc,nmlm,x10,x0,m10,m0,mcite,mct-1
,mct-x2,keyxyr,blkyear,dt-beg,yr-par,note-yr,atit-u,jttl-rm,thtit-a,vol-it,
vnum-x,volp-com,pp-last,num-xser,jnm-x,btit-rm,bt-rm,add-pub,pub-par,pre-pub
,edby,edbyy,blk-tit,ppx,ed,abr,ednx,xedn,jabr,url,url-blk,em-it,nfss,')
%% ----------------------... 阅读全帖
l*******e
发帖数: 6436
25
☆─────────────────────────────────────☆
crazybass (行走江湖) 于 (Wed Feb 6 13:38:44 2013, 美东) 提到:
Once go BC, never go back.
这一年来,这句话在鱼版出现频率很高。刚才又看到了
俺是持不同观点的。
俺2003开始玩spinning,2006开始玩BC,据俺有限的知识和经验打个比方:
BC如果是个钳子,spinning就像带钳子的多功能工具,上面钳子的功能也许不如单个的
钳子强大,但是钳子是干不了改锥的活的。
大家各有所爱我能理解,就像有的人开车赶路,有的人要越野,有的人就是纯玩车,啥
车好当然想法不一样。海钓的牛牛如果说once go conventional,you will be save.
我也能理解。
然则这个坛子新手众多,潜水新手也多,(虽然这帮子家伙看贴不回帖非常可恶,)
给他们一个开放的视界和多元的信息还是很必要的。
如果一个常来潜水的新手Once go BC, never go back----- never fishing anymore.
是我... 阅读全帖
g******4
发帖数: 6339
26
alan2009, 哪些高中读书好的中国孩子有更多的机会去顶尖大学 ??
这些区房价就不会跌 ... maybe
====================================================================
ILLINOIS MATHEMATICS AND
SCIENCE ACADEMY
skip .... selective HS
WAUBONSIE VALLEY H. S.
740 Chu, Calvin
UChicago
------------
CENTRAL CATHOLIC H. S.
---------------
162 Chu, Ethan D.
Rice University
--------------------
BUFFALO GROVE H. S.
-----------------------------
455 Hong, Grace E.
???
-----------
CARBONDALE COMMUNITY H. S.
-----------------
628 Xiao, Teresa L.
???
-... 阅读全帖
S**I
发帖数: 15689
27
来自主题: JobHunting版 - [合集] 收到G家拒信,发面经
☆─────────────────────────────────────☆
recursive (递归) 于 (Mon Apr 11 10:56:49 2011, 美东) 提到:
大半夜收到HR的thank you note。不用管什么NDA了
本人ECE fresh PhD,背景是电路/EDA,跟G业务基本没什么关系
同学内部推荐的,很简单的一次电面就给了onsite
题都不难,但是自己没把握好机会,出了一些小bug。
总的感觉,出错就是硬伤,宁可从最简单的算法写起,也不能出错。
电面:
1,Skip list, http://en.wikipedia.org/wiki/Skip_list
写code实现struct skip_list * find(struct skip_list *head, int value)
2,sorted array with repeated elements
for given element, find out its range.
e.g. A A B B B B B C C D D E F G, given B, the out... 阅读全帖
p*****2
发帖数: 21240
28
来自主题: JobHunting版 - 问一道字符串排序题

11356可以转化为00123
然后
00123 -> 1
00132 -> 2
看00123的时候, 可以转化为00000
0 skip
0 skip
1 因为已经用了两个0了,1就是剩下元素里的第0个元素, skip
2 剩下元素的0, skip
3 剩下元素的0,skip
因此, 00123就是最小的元素就是1
00132, 可以转化为00010
0 skip
0 skip
1 skip
3, 是剩下元素的1, 在它前边是有1!个元素,
2 skip,
00132之前有1个元素,因为00132就是2
s**x
发帖数: 7506
29
来自主题: JobHunting版 - 秒杀valid number
说一下思路吧,懒得写代码
1 skip white spaces
2 skip + or - if there is one.
3 skip all numeric digits, say n1 digits are skipped.
4 skip . if there is one
5 same as step 3, but save count to n2.
6 here is the key part, return false if n1 + n2 == 0.
7. Skip E or e if there is one.
8 if there is e or E, do step 2 and 3, return false if n1 == 0
9 skip white space
10 return false if string is empty now, otherwise return true.
Simple, fast and hard to make mistakes.
s**x
发帖数: 7506
30
来自主题: JobHunting版 - 秒杀valid number
说一下思路吧,懒得写代码
1 skip white spaces
2 skip + or - if there is one.
3 skip all numeric digits, say n1 digits are skipped.
4 skip . if there is one
5 same as step 3, but save count to n2.
6 here is the key part, return false if n1 + n2 == 0.
7. Skip E or e if there is one.
8 if there is e or E, do step 2 and 3, return false if n1 == 0
9 skip white space
10 return false if string is empty now, otherwise return true.
Simple, fast and hard to make mistakes.
g******4
发帖数: 6339
31
来自主题: Chicago版 - 请教在Long Grove买房
读书好的毕业生: national merit semifinalist 2015
semifinalist: 当年的全国高中那级 前1%.
全体学生, 一张考卷 没有种族,收入高低, 只有一次考试. 可以被看作是绝对的标准
测试学术水平.
http://adc.d211.org/wp-content/uploads/2013/09/2015-Semifinalists-Natl-Merit-Program.pdf
====================================================================
WAUBONSIE VALLEY H. S.
740 Chu,
UChicago
------------
CENTRAL CATHOLIC H. S.
---------------
162 Chu, D.
Rice University
--------------------
BUFFALO GROVE H. S.
-----------------------------
455 Hong,
Stanford Universit... 阅读全帖
w*****5
发帖数: 36
32
看了半天,一堆人骂楼主民科,却不给纠正。 我搜了一下,答案就出来了。
http://bbs.9ifly.cn/thread-11379-95-1.html
航天航空港的解释还是很权威的:
Lsquirrel
航天专家
1898楼
发表于 2014-11-8 22:37 | 只看该作者
chaodaibing 发表于 2014-11-8 09:06
我想问一个看起来可能幼稚的问题,航天吧有人问我我答不上来。
就是高速再入返回一定非要skip-entry这 ...
载人高速再入不一定需要Skip Reenntry,阿波罗就一次没用。直接一次再入热盾以60
年代技术扛住没有任何问题,更何况现在,阿波罗飞船最高加速度也就是6~7G之间,比
较难受但承受没有问题,当然你要失控成了弹道式再入,那就准备死扛16G过载吧,乌
龟能行但人是不行的
楠宫晓风vn
1899楼
发表于 2014-11-8 22:39 来自航空航天港手机版! | 只看该作者
chaodaibing 发表于 2014-11-8 09:06
我想问一个看起来可能幼稚的问题,航天吧有人问我我答不上来。
就是高速再入返回一定非要s... 阅读全帖
p*********b
发帖数: 47
33
来自主题: JobHunting版 - 收到G家拒信,发面经
9,Unix file path化简,写code
例如 /a/./b/../../c/ ,化简为 /c/
用stack或者d-queue,有些细节需要考虑,例如 /..//.. 还是输出 /
这题不需要额外的数据结构,从尾部向前反过来做。
我之前写的代码
/* The algorithm runs in O(n) time and O(n) space
* It works backwards so that no stack or other buffer is
* needed to skip the parents folder if a "../" is encountered.
* "//" is preserved as is, and "/./" is changed to "/
* I was able to do a inplace version, but string cut and cat are
* essentially array element revomal, which will make running time
* O(n^2).
*
* My ... 阅读全帖
S**I
发帖数: 15689
34
☆─────────────────────────────────────☆
gzou (gzou) 于 (Thu May 12 02:26:35 2011, 美东) 提到:
马上就要G on site了,
求祝福。
下面是从本版收集到的Google的试题,便于大家查询。
申明:有的附带有解释说明的,也来自于本版或者网络,大家自己看, 不保证真确
http://www.mitbbs.com/article_t1/JobHunting/31847453_0_1.html
本人ECE fresh PhD,背景是电路/EDA,跟G业务基本没什么关系
同学内部推荐的,很简单的一次电面就给了onsite
题都不难,但是自己没把握好机会,出了一些小bug。
总的感觉,出错就是硬伤,宁可从最简单的算法写起,也不能出错。
电面:
1,Skip list, http://en.wikipedia.org/wiki/Skip_list
写code实现struct skip_list * find(struct skip_list *head, int value)
2,sorted array... 阅读全帖
S**I
发帖数: 15689
35
☆─────────────────────────────────────☆
gzou (gzou) 于 (Thu May 12 02:26:35 2011, 美东) 提到:
马上就要G on site了,
求祝福。
下面是从本版收集到的Google的试题,便于大家查询。
申明:有的附带有解释说明的,也来自于本版或者网络,大家自己看, 不保证真确
http://www.mitbbs.com/article_t1/JobHunting/31847453_0_1.html
本人ECE fresh PhD,背景是电路/EDA,跟G业务基本没什么关系
同学内部推荐的,很简单的一次电面就给了onsite
题都不难,但是自己没把握好机会,出了一些小bug。
总的感觉,出错就是硬伤,宁可从最简单的算法写起,也不能出错。
电面:
1,Skip list, http://en.wikipedia.org/wiki/Skip_list
写code实现struct skip_list * find(struct skip_list *head, int value)
2,sorted array... 阅读全帖
s**x
发帖数: 7506
36
来自主题: JobHunting版 - leetcode的Valid Number测试真的变态
state machine, 代码效率最高, 大约 10 行 左右, 难度在于给出正确的状态转换图,
网上见到过的别的算法都是一堆变量, 查来查去, 面试时肯定汗如雨下, bug 漫天
飞, 根本不可行。
赵策大牛的思路是正确的, 简单易懂, 俺以前给出一个 code, 具体思路也是这个,
懒得去找了。
答题思路:
if +/- skip;
skip digits;
skip .
skip digits;
the sum of the numbers of digits above must > 0
if there is E/e {
skip +/-
skip digits;
}
return empty string or not.
g******4
发帖数: 6339
37

at
too
-----------------------
More examples:
---------------
HOFFMAN ESTATES
JAMES B. CONANT H. S.
-------------
999 Hong,
University of Illinois at Urbana-Champaign
Bachelors Degree, Computer Science
LIBERTYVILLE H. S.
-----------------
302 Zhang
University of Illinois at Urbana-Champaign
Bachelors Degree, Computer Science, Freshman
----------------------------------
PALATINE
WILLIAM FREMD H. S.
--------------
500 Ni,
UIUC
Computer Science 2015 2019
==========================================... 阅读全帖
t******n
发帖数: 19
38
来自主题: NewJersey版 - 我贡献一个考NJ驾照笔试的经验
咳咳,小经验,老大们可以跳过。
经验就是:去考试的时候,碰到不会的,先不要猜,而要skip!一次skip还不会的,再
次skip!多搞两次,可能就过了。
道理是这样的,NJ的笔试,skip之后,这个题还会再次出现。我自己的例子,50道题里
面skip了9道题,而已经错了5道题。这时候最多能再错5个了,要不然就得打道回府,
七天之后再来考笔试。一道很ft的题是说1.5盎司的86年威士忌相当于6pack啤酒呢,12
盎司premium beer呢,还是一瓶wine。看它不爽,skip乐两次。最后我其他题作对了,
result报告说50个错了7个,过了。这道题并没有第三次出现。
看了两遍交规,感觉对GDL不熟悉,庆幸还是过了。learner permit到手,11月份才能
路考。后悔怎么就把国内的驾照丢了,搞得现在是从0开始。
我确认了一下,有国内驾照的,找NJ官方认可的翻译公司翻译了,通过笔试就直接给驾
照了,不用路考了。
d**h
发帖数: 159
39
☆─────────────────────────────────────☆
dash2000 (DASH) 于 (Tue Dec 11 22:55:58 2012, 美东) 提到:
有利于偶拿灌水包子和提高忠诚度。
目标是增强体质,维持体重和保持饮食健康,不是比赛。龟速勿笑。明天开始。
之前记录
http://www.mitbbs.com/article/Running/31596901_0.html
现在状态:
奔4,男,144磅,5‘10“,饮食偏素,4个月前开始计划每天跑。
目标一个:每天MAF下跑1-2小时。
---------------12/10星期-------------
NB730上有438迈。
Hattori(G/C)上有50迈左右。
WR10 上有199迈.
seeya 28迈
bikila 44迈
-------------------------------------
12/12
环境:58F,石子土路,WR10
历时:1:22:29
路程 8.92 迈
心跳(avg):154bpm
速度: 9:15per mi
热量消耗:1000cal。
晚... 阅读全帖
D******n
发帖数: 2836
40
来自主题: Statistics版 - 新手问个问题 (转载)
create a .vim directory under you home directory(there is a dot before
vim)
and then create a syntax directory under it
and then create a sas.vim file under the syntax directory
==============sas.vim======================
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case ignore
syn region sasString start=+"+ skip=+\\|\"+ end=+"+
syn region sasString start=+'+ skip=+\\|\"+ end=+'+
" Want region from 'cards;' to ';' to be captured (Bob Heckel)
sy... 阅读全帖
f**d
发帖数: 768
41
来自主题: Neuroscience版 - eBook: From computer to brain
这是一本计算神经科学的优秀著作,全文拷贝这里(图和公式缺),有兴趣的同学可以
阅读
如需要,我可以分享PDF文件(--仅供个人学习,无商业用途)
From Computer to Brain
William W. Lytton
From Computer to Brain
Foundations of Computational Neuroscience
Springer
William W. Lytton, M.D.
Associate Professor, State University of New York, Downstato, Brooklyn, NY
Visiting Associate Professor, University of Wisconsin, Madison
Visiting Associate Professor, Polytechnic University, Brooklyn, NY
Staff Neurologist., Kings County Hospital, Brooklyn, NY
In From Computer to Brain: ... 阅读全帖
UD
发帖数: 182
42
来自主题: JobHunting版 - one amazon interview problem
below code seems to work, and should be O(n) time and O(1) space, if you disagree, please list your argument.
The idea behind is the use and resue of sum(i,j), that's why the O(1) space.
sum(i,j)=sum of all the 1s between i and j.
sub-seq(i,j) has equal 1s and 0s when sum(i,j)*2=j-i+1, we start by setting i=0,j=A.length-1, then searching from both ends.
1. if sum(i,j)*2==j-i+1, then found it
2. else if sum(i,j)*2>j-i+1, we have more 1s then 0s, then we check A[i] and A[j]:
a. if A[i]==A[j], t... 阅读全帖
l********y
发帖数: 189
43
来自主题: JobHunting版 - 刚刚google intern面试完 也求bless
面经附上了,祝大家好运吧
======================= update ==================
刚刚收到信被拒了,拒的速度真快。不过不是很沮丧,可能是因为拒的很快,面试第二
天就被拒了。又收到其他的interview,刚刚被MS面完,求大家继续bless。。
现在公布面试题
第一个reviewer:
先瞎扯research,然后让写binary search的code,从sorted的array里找一个key
number,不难,但是要注意你写的code的严谨性,要check指针是不是空,array index
会不会是负数,两个数相加是不是会overflow等等。
然后问c里面什么是volatile,怎么用c实现exception handler 等等
第二个reviewer:
一上来就问我有没有industry experience,我的简历里只有research,没有industry
,就是为来industry找intern的,他可能没看我的简历。然后他就给我发了一张图,图
上画了个skip-list,他问我看到这张图我想到了什么,问我如何从skip... 阅读全帖
r******r
发帖数: 700
44
来自主题: JobHunting版 - Apple Siri 组 Java 测试题
/**
* Using {@link AppleExercise.Problem1.SampleCache} as a starting point,
answer questions 1-3 by
* creating 3 new inner classes within {@link AppleExercise.Problem1}
below.
*/
public static class Problem1 {
public interface Cache {
public void put(Object key, Object value);
public Object get(Object key);
}
public static class SampleCache implements Cache {
private Map map;
public SampleCache() {
... 阅读全帖
a***e
发帖数: 413
45
来自主题: JobHunting版 - 请问大牛leetcode 3Sum 和4sum的问题
请问大牛,这两道题在skip 相同元素的时候,为什么要用类似
if(x < num.size()-1 & num[x] == num[x+1]) continue; // Skip same
x
而不是 // if( num[x] == num[x-1]) continue;
我自己写的时候是comment out的语句,但总是出错。没搞懂为啥
3sum的代码如下。非常感谢!
vector > threeSum(vector &num) {
vector> result;
sort(num.begin(), num.end());
for (int x = num.size()-1; x >=2; x--) { // Do it backwards
if(x < num.size()-1 & num[x] == num[x+1]) continue; // Skip same
x
// if( num... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)