a***e 发帖数: 413 | 1 题目
https://oj.leetcode.com/problems/search-a-2d-matrix/
我写的如下,先搜索行,再列。后面那个简短的是看到的别人的答案,简洁很多,但要
不要考虑行数*列数overflow的情况呢?多谢!
bool searchMatrix(vector > &matrix, int target) {
int row = matrix.size();
if (row==0) return false;
int col = matrix[0].size();
if (col==0) return false;
int rmin=0, rmax=row-1, cmin=0, cmax=col-1,rmid,cmid;
while (rmin<=rmax)
{
rmid = rmin+(rmax-rmin)/2;
if (matrix[rmid][0]>target... 阅读全帖 |
|
w*******y 发帖数: 60932 | 2 Pacsun is having one of those additional 50% off clearnace.
No coupons or codes required.
Flat rate of $7 Shipping or Free shipping over $75.
Pacsun.com:
http://pacsun.com
Men's Clearance:
http://shop.pacsun.com/search/All-Promo-Markdowns/refine/cat/Me PRODUCT_TYPE_NAME_x3D_General_x20_Product)( PRODUCT_TYPE_NAME)( General_x20_Product))(attribute_value_string=ShipToCountry=( ShipToCountry_x3D_US)( ShipToCountry)( US))(free_text==( All_x20_Promo_x20_Markdowns))&rmid=10_16_11_6WaysToSave&rrid=3893... 阅读全帖 |
|
p*****y 发帖数: 1049 | 3 2010年10月8日,中国政府领导人,中华民国总统马英九先生对刘晓波获奖表示祝贺!
http://www.president.gov.tw/Default.aspx?tabid=131&itemid=22484&rmid=514
總統對劉曉波獲得諾貝爾和平獎表達祝賀之意
公布日期
中華民國99年10月08日
劉曉波先生榮獲諾貝爾和平獎,總統府發言人羅智強表示,馬總統對劉曉波的獲獎
,表達祝賀之
意。
羅智強表示,馬總統在今年的六四感言中即曾表示:
「在這全新的歷史條件下,我們希望大陸當局此刻在人權方面展現全新的思維,以
充分的誠意與自
信,逐步化解重大人權事件所遺留下來的問題,並以更寬宏的氣度,對待異議人士。這
不但有助提升大
陸人民對大陸當局的信賴,也必然可以大幅拉近兩岸在人權方面的距離,更使世人相信
中國大陸的崛
起,不僅是和平的,同時也是自由、民主與人權普世價值的顯現。」
馬總統認為,中國大陸的經濟發展已讓世人刮目相看,如果在人權問題上,能有進
步與突破,會更
符合其「和平崛起」的目標,也會贏得台灣人民與國際社會的肯定。劉曉波榮獲和平獎
,馬總統認為,
這不只是劉曉... 阅读全帖 |
|
|
p******s 发帖数: 582 | 5 【 以下文字转载自 DealGroup 俱乐部 】
发信人: wiiRhappy (wiiRhappy), 信区: DealGroup
标 题: 【$】Blackberry playbook buy 2 get 1 free on select retailer
发信站: BBS 未名空间站 (Thu Oct 27 20:20:53 2011, 美东)
HI ALL! I just got an email from blackberry to their business customers from
now through DEC 31,2011. You can get a buy 2 get 1 free promotion for
blackberry playbook from select retailers.
link: Link:
http://us.blackberry.com/business/playbook/?RMID=B2B_201110_PB_
I checked the price on pcmall, and its $352 for the 16g... 阅读全帖 |
|
f****6 发帖数: 4472 | 6 For a limited time only, Southwest Airlines Rapid Rewards® and TurboTax
® have teamed up to bring you a special offer where you can earn Rapid
Rewards Points just for filing your taxes with TurboTax® Online. File
your 2012 tax return with any TurboTax Online Federal product1 by April 15,
2013 and earn 1,000 points. Get your maximum refund, guaranteed2, and Rapid
Rewards Points!
link: https://rapidrewardsshopping.southwest.com/me____.htm?mids=2542&RMID=L
_20130103_RREU_TurboTax_V... 阅读全帖 |
|
|
h*******3 发帖数: 327 | 8 家有小朋友的爸爸妈妈可以考虑...
俺家的才一岁半, 太小了些...
N年前看过一次, 还是适合小朋友看...
June 3 - 27, Kooza
http://www.cirquedusoleil.com/en/shows/kooza/tickets/seattle.aspx
Sometime in Sep, Alegria
http://www.cirquedusoleil.com/en/shows/alegria/tickets.aspx?rmid=20100408_NewsletterUSCA_EN&rrid=25fc0563-066e-4b37-8ed0-727e18638702
票价相差很大, 我以前买的是premium, 进去才发现地方不大, 其实买便宜的票一样看
得清楚... 当然, 想让小朋友坐第一排, 和台上有互动, 那就买最最贵的好了... |
|
|
|
|
a***u 发帖数: 14 | 12 我有几个独立的process, 他们share一个mem seg。 他们可能run concurrently,也可能
run sequentially。我应该怎样判断什么时候做RMID,在哪一个process做呢?
Thanks. |
|
|
|
|
|
|
w*******y 发帖数: 60932 | 18 HI ALL! I just got an email from blackberry to their business customers from
now through DEC 31,2011. You can get a buy 2 get 1 free promotion for
blackberry playbook from select retailers.
link: Link:
http://us.blackberry.com/business/playbook/?RMID=B2B_201110_PB_
I checked the price on pcmall, and its $352 for the 16gb which would bring
it down to $230 each.
|
|
w*******y 发帖数: 60932 | 19 3 days only..
This is great for anyone who's going to make a big purchase at a store like
Target. Let's say you buy a tv for $1,000.. that's 6,000 points, enough for
2 trips to Vegas for me =).
Link:
https://rapidrewardsshopping.southwest.com/promo____.htm?chan=c&med=em&cont=
em0312&RMID=L_120329_RREU_RRShopping&RRID=ZHlsYW4uaHBAaG90bWFpbC5jb20.&src=
MAILRRDUPDT00000A120329
There are many other stores as well.
|
|