j*****y 发帖数: 1071 | 1 不错。 thanks. 简单多了.
/**
* Definition for binary tree with next pointer.
* struct TreeLinkNode {
* int val;
* TreeLinkNode *left, *right, *next;
* TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL) {}
* };
*/
class Solution {
public:
void connect(TreeLinkNode *root) {
TreeLinkNode dummyCur(0), dummyNext(0);
TreeLinkNode *cur = &dummyCur, *p = &dummyNext;
dummyCur.next = root;
while(cur->next)
{
while(cur->next)
{
... 阅读全帖 |
|
r*****e 发帖数: 792 | 2 void connect(TreeLinkNode *root){
if (!root) return;
TreeLinkNode *next = root->next;
while (next) {
if (next->left) {
next = next->left;
break;
}
if (next->right) {
next = next->right;
break;
}
next = next->next;
}
//connect right first and then left
if (root->right) root->right->next = next;
if (root->left) root->left->next = root->right? root->right:next;
//when recurse, do ... 阅读全帖 |
|
l**b 发帖数: 457 | 3 一样的啰嗦。
/**
* Definition for binary tree with next pointer.
* public class TreeLinkNode {
* int val;
* TreeLinkNode left, right, next;
* TreeLinkNode(int x) { val = x; }
* }
*/
public class Solution {
public void connect(TreeLinkNode root) {
if (root == null) return;
connectLevel(null, root);
connect(getNext(root));
}
private TreeLinkNode getNext(TreeLinkNode last) {
if (last == null) return null;
if (last.left != null) return last.l... 阅读全帖 |
|
j*****y 发帖数: 1071 | 4 你这个用了 recursive感觉就不是 constant space了吧 ?
一样的啰嗦。
/**
* Definition for binary tree with next pointer.
* public class TreeLinkNode {
* int val;
* TreeLinkNode left, right, next;
* TreeLinkNode(int x) { val = x; }
* }
*/
public class Solution {
public void connect(TreeLinkNode root) {
if (root == null) return;
connectLevel(null, root);
connect(getNext(root));
}
private TreeLinkNode getNext(TreeLinkNode last) {
if (last == null) return null;
... 阅读全帖 |
|
s****l 发帖数: 10462 | 5 有人愿意讨论这里面提及的测序技术吗?优缺点,可行性,第一手经验等等
这里面谁现在是赢家很清楚,但是可见的将来和更远的将来谁会赢?
http://cen.acs.org/articles/92/i33/Next-Gen-Sequencing-Numbers-
全文拷贝如下
试试看图能不能贴上
/1407973177171.jpg
/1408028636124.jpg
OVER STORY
Next-Gen Sequencing Is A Numbers Game
As technical and cost barriers fall, instrument firms move their systems
into research and clinical markets
By Ann M. Thayer
Department: Business
Keywords: instrumentation, gene sequencing, diagnostics, genomics, cancer
[+]Enlarge
09233-cover-Openercxd_17647969-690
A... 阅读全帖 |
|
a***e 发帖数: 413 | 6 这道题和1我都是觉得iterative的比recursive的好写,看别人答案也更容易懂,(压
根儿没写出通过的recursion来)。下面这个都不知道思路是怎么地,特别是怎么能
connect(dummy.next);就保证 dummy.next 就是下一层的第一个了呢?见笑哈。
如果明天还看不出来就去VS里面调调。。。。。。
void connect(TreeLinkNode *root) {
if (root==NULL) return;
TreeLinkNode dummy(-1);
for (TreeLinkNode *cur = root, *prev=&dummy; cur; cur = cur->next)
{
if (cur->left!=NULL){
prev->next = cur->left;
prev = prev->next;
}
... 阅读全帖 |
|
h***o 发帖数: 1494 | 7 微软上周提交的一份专利申请文件显示,“Be what’s next”(未来属于我)将成为微
软的新宣传语。
“Be what’s next”最早出现于今年7月份,当时,微软在一次内部员工大会上首
次展示了全新的
品牌口号“Be What’s Next”。
尽管微软发言人已证实“Be What’s Next”的存在,但此后,“Be What’s Next
”就销声匿迹。
直至上周,微软才在一份专利申请文件中正式提及“Be What’s Next”。
与此同时,微软当前的宣传语“your potential, our passion” (您的潜在需求
,就是我们
前进的动力。)最近几年已逐渐褪色。
有分析人士称,从明年开始,人们可能就会在微软的产品上看到新的宣传语“Be
What’s Next”。 |
|
x**********d 发帖数: 693 | 8 我是10g plan,我来告诉你,当然是next:
1. 2yr 每月多25, next每月多27,但是首付不一样, 2yr首付199 + 40(activation)
,next首付51(这是你买6的税,assume 8%)no activation fee。也就是说, 如果你
打算keep 这个手机,此手机cost:
2yr : 199 + 40 + 25*24 = 839
next: 51 +27*24 = 699
当然还有一种就是你去ebay买不要税的裸机,这样会比next便宜51. 反正就是不能用
2yr。
2. Next你还可以选择在18个月的时候吧6 trade in给ATT,继续用next用新手机
你自己选吧。 |
|
|
a**********0 发帖数: 422 | 10 题目很简单 思路就是 level order traverse 其间每一层除了最后一个node 其他的
node的next都指向本层的下一个 最后一个node的next指向null
不过老过不了OJ 报错 而且我自己在eclipse上跑了一下 发现自己跑的结果和报错的情
况不一样 难道是oj错了
/**
* Definition for binary tree with next pointer.
* public class TreeLinkNode {
* int val;
* TreeLinkNode left, right, next;
* TreeLinkNode(int x) { val = x; }
* }
*/
public class Solution {
public void connect(TreeLinkNode root) {
if(root == null)
return;
LinkedList que... 阅读全帖 |
|
g*******r 发帖数: 192 | 11 http://www.marketwatch.com/story/next-stop-dow-20000-2011-06-02
By James Altucher
NEW YORK (MarketWatch) — The market fell like a brick on Wednesday. People
can’t handle any piece of bad news without saying “this is the big one.”
We have visceral memories of May through July 2010, just a year ago. We have
visceral memories of 2008, when it seemed like no end was in sight. Nobody
wants to be caught trying to catch that knife with their mouths like in a
circus act. You get cut up that way, and the... 阅读全帖 |
|
p***o 发帖数: 836 | 12 【 以下文字转载自 Apple 讨论区 】
发信人: pstwo (孤独的星), 信区: Apple
标 题: ATT Next 的一个重要问题
发信站: BBS 未名空间站 (Wed Sep 24 22:15:27 2014, 美东)
如果买全价机器
1) 信用卡有90天purchase protection, 就是摔碎了可能可以赔
2) extra one year warranty
如果用att next 是不是全没了?
我现在既可以next也可以全价,选择next是因为想让att给我5s解锁,省$50
怎么办呢?
如果用visa 立刻payoff next,是不是就可以有这些benefits了呢?据说可以立刻去
ATTstore payoff full amount. 这样会有receipt吗? |
|
l********s 发帖数: 395 | 13 Located on the beautiful sea shore of Honolulu, Hawaii, overlooking the
Pacific Ocean, the University of Hawaii Cancer Center (UHCC) is argubly the
most beautiful Cancer Center among 66 Cancer Centers designated by the
National Cancer Institute
Projects available in the bioinformatics/genomics group, include but are not
limited to (1) Characterization and comparative genomics of long-intergenic
non-coding RNAs with next-generation sequencing data etc. (2) develop
efficient multi-dimensional data... 阅读全帖 |
|
T****k 发帖数: 1374 | 14 Report: Obama says immigration next on Dems' agenda
By Michael O'Brien - 04/20/10 05:35 PM ET
President Barack Obama told a Republican senator Tuesday that
immigration is next on his agenda, according to a report.
Sen. Scott Brown (R-Mass.) told the Wall Street Journal that the
president told him that Democrats plan to move ahead with immigration
reform legislation next month when the two spoke this afternoon.
The Journal reported that Obama told Brown that immigration was next,
and was lobb |
|
i***k 发帖数: 1 | 15 我的习惯总是, next就说下一年/月/周的那个,next august, next Friday
如果说这一年/月/周的,我一直是用the coming xxx
但前几天,却看到一篇,说,只要说是next,就是接着来的那个日子
如果今天是Wednesday,那next Friday还是说这个Friday,不是说下个星期的Friday
反正我都是有点迷糊的...但,或者自己也是时候去更正一直的说法
请参考这里
http://hk.myblog.yahoo.com/siu82english/article?mid=5686 |
|
t**l 发帖数: 577 | 16 过了版上最近很多讨论,其实NEXT对像我这样的土人优势很明显:
NEXT每月月费降¥15-25,对于我这种一般两年内不换手机的土人,折扣加上免activ.
fee已经跟450 Off差不多了。而且如果手机不升级,这个discount一直有效。
另外,NEXT新新加线再额外减100,刚好想给LP加个Ipad mini。Mobile share的计划加
pad最划算,10块一月。 以前的iPad的非Mobile share计划一直是15/month,关键才
250M!
谨供参考: 从开销角度讨论NEXT实在是跟换手机周期关系很大。当然NEXT本就是给常
换手机的主儿设,要不怎么黑你钱哪? :D |
|
f********x 发帖数: 99 | 17 The world beyond batch: Streaming 101: A high-level tour of modern data-
processing concept
http://radar.oreilly.com/2015/08/the-world-beyond-batch-streami
by Tyler Akidau August 5, 2015
Editor’s note: This is the first post in a two-part series about the
evolution of data processing, with a focus on streaming systems, unbounded
data sets, and the future of big data.
Streaming data processing is a big deal in big data these days, and for good
reasons. Amongst them:
Businesses crave ever more tim... 阅读全帖 |
|
m********c 发帖数: 2 | 18 【 以下文字转载自 Immigration 讨论区 】
发信人: mayoclinic (mayoclinic), 信区: Immigration
标 题: guest editor wanted (next generation sequencing in medicin
发信站: BBS 未名空间站 (Tue Sep 2 17:31:38 2014, 美东)
大家好!Bioinformatics and Biology Insights杂志要出一本supplement,我是Next
Generation Sequencing in Medicine方向的lead guest editor。说实话杂志算不上好
,不过还算正规,毕竟被Pubmed收录。希望对感兴趣的同仁申请绿卡有帮助。
现在我需要recruit合适的guest editor。你的工作包含:1:邀约到5篇稿件;2:和其
它editors一起合写一页左右的introductory editorial。有兴趣且方向match的同仁,
欢迎站内联系我,敬请附上你的简历。
Anyone interested in worki... 阅读全帖 |
|
|
l*****7 发帖数: 8463 | 20 Isreal wants to attack Iran before next summer:-) (link)
http://www.huffingtonpost.com/2012/09/27/benjamin-netanyahu-wor
UNITED NATIONS — In his most detailed plea to date for global action
against Iran's nuclear program, Israeli Prime Minister Benjamin Netanyahu
said Thursday the world has until next summer at the latest to stop Iran
before it can build a nuclear bomb.
Netanyahu flashed a diagram of a cartoon-like bomb before the U.N. General
Assembly showing the progress Iran has made, sayin... 阅读全帖 |
|
f****l 发帖数: 8042 | 21 感觉随着技术进步,天空部署才是未来啊?几十或者上百颗卫星怎么也比地面无数的基
站成本低廉吧。懂行的评论一下?貌似现在Iridium美军一直在用, 并没有放弃。技术
成熟成本降低后,军事转为民用也有可能。
Next-generation constellation
In 2017, Iridium began launching[18][19][20][21] Iridium NEXT, a second-
generation worldwide network of telecommunications satellites, consisting of
66 active satellites, with another nine in-orbit spares and six on-ground
spares. These satellites will incorporate features such as data transmission
that were not emphasized in the original design.[22] The constellat... 阅读全帖 |
|
F*V 发帖数: 3978 | 22 Isreal wants to attack Iran before next summer:-) (link)
http://www.huffingtonpost.com/2012/09/27/benjamin-netanyahu-wor
UNITED NATIONS — In his most detailed plea to date for global action
against Iran's nuclear program, Israeli Prime Minister Benjamin Netanyahu
said Thursday the world has until next summer at the latest to stop Iran
before it can build a nuclear bomb.
Netanyahu flashed a diagram of a cartoon-like bomb before the U.N. General
Assembly showing the progress Iran has made, saying ... 阅读全帖 |
|
l****z 发帖数: 29846 | 23 By: Daniel Horowitz (Diary) | February 5th, 2013 at 04:24 PM |
We’ve all been waiting to see the updated CBO Budget and Economic Outlook
for 2013 and the next ten years. Most of the news articles are focusing
their headlines on the deficit and debt numbers projected in the CBO report.
But remember that the reason why CBO deficit projections always understate
the reality is because they overstate the amount of revenue they expect to
come into the Treasury.
CBO projects the gross federal d... 阅读全帖 |
|
x*******1 发帖数: 4787 | 24 代购amazon.com,amazon.ca, amazon.uk Exchange Aug 29
2 转coupon: $10 off your next in-store purchase of $25 or mo FleaMarket Aug
29
3 转coupon: $10 off your next in-store purchase of $25 or mo ebiz Aug 29
4 转coupon: $10 off your next in-store purchase of $25 or mo Fashion Aug 29
5 转coupon: $10 off your next in-store purchase of $25 or mo Exchange Aug
29 |
|
V**5 发帖数: 515 | 25 【 以下文字转载自 Living 讨论区 】
发信人: Vbc5 (Vbc5), 信区: Living
标 题: 耸人听闻?Next Great Depression 'About to Strike'
发信站: BBS 未名空间站 (Mon Oct 20 10:31:49 2014, 美东)
偶尔看到如下报道,是否耸人听闻?或可以思考思考?
CIA Analyst: Next Great Depression 'About to Strike'
JIM RICKARDS SEES BAD NEWS IN THE FED'S 'MISERY INDEX'
By Neal Colgrass, Newser Staff
Posted Oct 19, 2014 3:33 PM CDT
NEWSER) – A CIA analyst known for his dire economic predictions is speaking
up again, warning that the next Great Depression may be right around the
corne... 阅读全帖 |
|
m********c 发帖数: 2 | 26 大家好!Bioinformatics and Biology Insights杂志要出一本supplement,我是Next
Generation Sequencing in Medicine方向的lead guest editor。说实话杂志算不上好
,不过还算正规,毕竟被Pubmed收录。希望对感兴趣的同仁申请绿卡有帮助。
现在我需要recruit合适的guest editor。你的工作包含:1:邀约到5篇稿件;2:和其
它editors一起合写一页左右的introductory editorial。有兴趣且方向match的同仁,
欢迎站内联系我,敬请附上你的简历。
Anyone interested in working with me as a guest editor of a supplement the
journal plans to publish within the next 12 months? The topic of the
supplement is Next Generation Sequencing in Medicine.
As a guest ed... 阅读全帖 |
|
p*******s 发帖数: 157 | 27 January 09, 2016
To the man I sat next to on my way in to Boston:
When I boarded the commuter rail, you were already in the midst of a
spirited phone conversation and didn’t seem to care about how loud you were
talking. You were talking with someone about the Paris train attack and the
growing epidemic of gun violence in America.
You spoke about the “murderous NRA” and “bloodthirsty gun nuts” who were
causing our schools to “run red with blood.” You spoke profanely of the
Republicans who opposed... 阅读全帖 |
|
h***9 发帖数: 8948 | 28 http://uk.xbox360.ign.com/articles/115/1150619p1.html
Bungie's Next Game Detailed by Reports
Destiny, a MMO FPS, to be Halo creator's next.
UK, February 17, 2011
Bungie's next game is to be an massively multiplayer first-person shooter
titled Destiny, if recent rumour
reports are to be believed.
Kotaku is citing a source that details Bungie's first game for Activision,
which is reportedly a sci-fi shooter set
in space, and as expected it's to be an MMO which is described as "WoW in
Space". It's ... 阅读全帖 |
|
p****t 发帖数: 11416 | 29 发信人: veevee (泡泡鱼--浮光掠影), 信区: Comic
标 题: 看了next和try,呵呵
发信站: BBS 水木清华站 (Mon Nov 27 15:03:44 2000)
用了三个晚上,总算看完了魔剑美神的next和try。
感觉上try里面虽然出场人物比较多,但是反而有些地方
节奏有点慢,分了太多细节给一些配角,而莉娜和高里
之间居然一点发展和描写都没有,有点令人失望啊……
而且反派配角那么忠心耿耿热血无比的样子我真是不喜欢,
当然这纯粹是本人的个人偏好了,:P
令人欣慰的是杰洛士的戏分很多啊,呵呵,:)
不明白的是,在next里杰洛士明明是冥王的手下,try里
怎么变成兽王的手下了?难道他这种魔组高级干部是可以
被随便调用的?
感觉上next里感情方面的处理都比较自然真挚一点,
而try里总是强调神魔之间的争斗,强调正义和存在的意义,
莉娜有太多时候在说教了。而且到了一般战斗的时候,好像
大部分都变成别人打莉娜指挥,她的作用只是到了最后使用
一个大咒文或者最后一击……而且try里面有太多时候是
无意义的战斗和内讧,简直看得fa |
|
r******y 发帖数: 3838 | 30 Only a day after the iPhone 4S launch and rumors of the next Apple iPhone
have already started. CNet reports that it's actually Apple's next iPhone
that will get a major redesign. Of course, we've heard that before.
Mockup based on previous rumors
CNet cites two sources for the news. First is a research note from analyst
Ashok Kumar at Rodman & Renshaw. Kumar claims that Steve Jobs was intimately
involved with the next iPhone from concept to final design. Kumar recites
features that have been ci... 阅读全帖 |
|
f*******y 发帖数: 267 | 31 【 以下文字转载自 PDA 讨论区 】
发信人: flymelody (无兄弟不倒塔), 信区: PDA
标 题: 刚和客服聊完,讨论ATT NEXT
发信站: BBS 未名空间站 (Sat Apr 26 20:58:19 2014, 美东)
去年10月拿的iphone 5,之后family plan换了share data的
现在iphone 5 坏了,想拿一个iphone 5s,只能用NEXT 18 或者等六个月 再2-year
比较了一下两个plan,差别在于以后换手机要trade-in还是过六个月多花199+36 可以
保留新手机。每个月的月租感觉没有变化(NExt 18 多25/month, 而2-year没有Mobile
Share Value monthly savings discount,也是25/month)。
这样比较下来,可能更倾向于现在拿一个新手机(Next 18)。知道这个新噱头是ATT用
来圈钱的,但不知道我这理解的对不对?谢谢了! |
|
p***o 发帖数: 836 | 32 如果买全价机器
1) 信用卡有90天purchase protection, 就是摔碎了可能可以赔
2) extra one year warranty
如果用att next 是不是全没了?
我现在既可以next也可以全价,选择next是因为想让att给我5s解锁,省$50
怎么办呢?
如果用visa payoff next,是不是就可以有这些benefits了呢? |
|
g**********t 发帖数: 475 | 33 你想做教授还是进公司?如果对学术界兴趣不大,可接收第一个offer。以鄙人拙见,
在可见的未来next generation sequencing大有用武之地,而且在未来很有可能大规模
outsource到国内。如果想找教授位置可以考虑进一个用next generation sequencing
方法做生物学问题的lab,很多相关文章的一作都是bioinformatician。大规模用next
generation sequencing的project一般都能发到比较好的杂志上。
总感觉Graph theory做结构发展缓慢,找教职估计比做next generation sequencing难
(当然你不能只做支持)。
sequencing |
|
p**s 发帖数: 408 | 34 According to TheDetroitBureau.com, General Motors is planning to alter its
strategy with the next-generation Corvette to appeal to a wider range of
customers. Traditionally, the Corvette has always been offered with high-
displacement eight-cylinder powertrains, but according to sources within GM,
the C7 Corvette may also offer a small, turbocharged V8.
Just how small, exactly? TDB reports that the next Corvette's European-style
V8 could measure in at just over 3.0 liters, using an overhead-cam ... 阅读全帖 |
|
w*******y 发帖数: 60932 | 35 Great deal (extremely hot deal next week):
Campbells Condensed Cream Soups are $0.75 on Price Cut currently. According
to next week's ad, posted here, they will be $0.50 each.
There is a $1.50/3 MQ here:
Link:
http://www.campbellskitchen.com/Coupon.aspx
So, you can get them at $0.25 each this week, or absolutely free next week!
NOTE: Both this and next week, unless the issue is fixed before then, you
will need to watch the coupon carefully as it will likely ring up as $0.75
off or $0.50 off, ... 阅读全帖 |
|
w*******y 发帖数: 60932 | 36 Star Trek: The Next Generation - Next Level [Blu-ray]:
http://www.amazon.com/dp/B0064NLQYG
Pre-order Price Guarantee of $14.99. This title will be released on January
31, 2012.
For the first time ever, you can experience Star Trek: The Next Generation's
most important and beloved episodes in 1080p high definition, with true
high definition visual effects and digitally remastered 7.1 sound - or with
the original audio. The visual effects have been painstakingly re-created
from the original film e... 阅读全帖 |
|
h******t 发帖数: 872 | 37 CHANOS: CHINA IS THE NEXT ENRON
21 September 2010 by TPC 17 Comments
James Chanos of Kynikos Associates says China is the next Enron. Of
course, this would sound ridiculous if Chanos hadn’t been one of the
original people to uncover the Enron scandal. Chanos is a master short
seller, accountant and hedge fund manager. He essentially believes the
Chinese economy is one big government run ponzi scheme. He thinks it will
end very badly
http://pragcap.com/chanos-china-is-the-next-enron |
|
|
p******g 发帖数: 125 | 39 A crown prince is anointed in a vast kingdom facing vaster stresses. China
is in
a fragile state(在一个面临更大挑战的巨大王国,继承者被选定。中国处于脆弱的状
态。)
“The next emperor”(下一位皇帝)
www.economist.com(经
济学网
站)
“WITH you in charge, I am at ease,” Mao Zedong is supposed to have told
his
successor, Hua Guofeng. It proved a disastrous choice. Mr Hua lasted a
couple of
years before being toppled in 1978.A decade later succession plans once
again
un... 阅读全帖 |
|
w*********r 发帖数: 42116 | 40 I’ve been hearing since before Christmas about Project Chrome, the code
name for what has been touted to me as the biggest reorganization in IBM
history. Well, Project Chrome is finally upon us, triggered I suppose by
this week’s announcement of an 11th consecutive quarter of declining
revenue for IBM. Project Chrome is bad news, not good. Customers and
employees alike should expect the worst.
To fix its business problems and speed up its “transformation,” next week
about 26 percent of IBM’s emp... 阅读全帖 |
|
m******1 发帖数: 19713 | 41 Elton与其爱人已经签约共同制作一部男同百老汇剧Next Fall,此剧去年曾在百老汇以
外的舞台上公演时获得好评,它讲述的是一对男同五年恋爱史的故事。
Elton and Partner to Produce Broadway Play
Elton John and his partner David Furnish have signed up to produce Next Fall
, a play about gay men set to transfer to Broadway.
By Julie Bolcer
COUPLES DAVID FURNISH ELTON JOHN X390 (GETTY) | ADVOCATE.COM
Elton John and his partner David Furnish have joined the producing team for
Next Fall, a play about the ups and downs of a gay relationship set to
transfer to Broadway this |
|
l****z 发帖数: 29846 | 42 http://20smoney.com/2010/10/25/all-eyes-on-fed-next-week/
25 October 2010
If you're new here, you may want to subscribe to my RSS feed. Or consider
checking out my online income reports or discussion forums. Thanks for
visiting!
The Federal Reserve looks to be announcing the plans for their next phase of
quantitative easing next week. The announcement will come on Wednesday,
November 3rd. Interestingly, this comes a day after the elections. Whether
or not the timing means anything is up for ... 阅读全帖 |
|