b*e
2 楼
那位大侠给一个?
再给一个linked list to balance BST的code吧
thanks
再给一个linked list to balance BST的code吧
thanks
a*k
3 楼
武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
MIT读全球排名第一的Operation/Engineering MBA。
http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
MIT读全球排名第一的Operation/Engineering MBA。
http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
y*i
4 楼
我有朋友刚从欧洲move回美国藤校
y*e
5 楼
BST to Doubly Linked List:
public LinkedList convert(BTree tree) {
LinkedList list = new LinkedList();
convert(tree, list);
return list;
}
private void convert(BTree tree, LinkedList list) {
if (tree != null) {
convert(tree.getLeftChild(), list);
LinkedListNode node = new LinkedListNode(tree.getValue());
list.add(node); // append to tail
convert(tree.getRightChild(), list);
}
}
看起来很眼熟把?就是in-order的tree traverse而已。
至于LinkedList的实现。。
public cl
【在 b********e 的大作中提到】
: 那位大侠给一个?
: 再给一个linked list to balance BST的code吧
: thanks
public LinkedList convert(BTree tree) {
LinkedList list = new LinkedList();
convert(tree, list);
return list;
}
private void convert(BTree tree, LinkedList list) {
if (tree != null) {
convert(tree.getLeftChild(), list);
LinkedListNode node = new LinkedListNode(tree.getValue());
list.add(node); // append to tail
convert(tree.getRightChild(), list);
}
}
看起来很眼熟把?就是in-order的tree traverse而已。
至于LinkedList的实现。。
public cl
【在 b********e 的大作中提到】
: 那位大侠给一个?
: 再给一个linked list to balance BST的code吧
: thanks
I*a
6 楼
只要不是千老就是稳拿,
M*o
7 楼
Everything is possible.
y*e
8 楼
Doubly Linked List to Balanced BST:
取LinkedList的中间Node,那就是BST的Root。LinkedList的前半部分,就是BST的Left
Child;后半部分,就是BST的
Right Child。用递归。
public BTree convert(LinkedList list) {
if (list.size() > 0) {
// partition it into three parts: left, middle, right
Partition parts = partition(list);
LinkedList leftList = parts.getLeftSubList();
LinkedList rightList = parts.getRightSubList();
LinkedListNode middle = parts.getMiddle();
BTree root = new BTree(
【在 b********e 的大作中提到】
: 那位大侠给一个?
: 再给一个linked list to balance BST的code吧
: thanks
取LinkedList的中间Node,那就是BST的Root。LinkedList的前半部分,就是BST的Left
Child;后半部分,就是BST的
Right Child。用递归。
public BTree convert(LinkedList list) {
if (list.size() > 0) {
// partition it into three parts: left, middle, right
Partition parts = partition(list);
LinkedList leftList = parts.getLeftSubList();
LinkedList rightList = parts.getRightSubList();
LinkedListNode middle = parts.getMiddle();
BTree root = new BTree(
【在 b********e 的大作中提到】
: 那位大侠给一个?
: 再给一个linked list to balance BST的code吧
: thanks
z*4
9 楼
同一级的,好像听过这个名字,看照片却没印象
c*g
10 楼
谢谢楼上两位前辈!
b*n
11 楼
如果不是sorted linked list,为什么不用linked list的root当BST的root?
Left
【在 y*********e 的大作中提到】
: Doubly Linked List to Balanced BST:
: 取LinkedList的中间Node,那就是BST的Root。LinkedList的前半部分,就是BST的Left
: Child;后半部分,就是BST的
: Right Child。用递归。
: public BTree convert(LinkedList list) {
: if (list.size() > 0) {
: // partition it into three parts: left, middle, right
: Partition parts = partition(list);
: LinkedList leftList = parts.getLeftSubList();
: LinkedList rightList = parts.getRightSubList();
Left
【在 y*********e 的大作中提到】
: Doubly Linked List to Balanced BST:
: 取LinkedList的中间Node,那就是BST的Root。LinkedList的前半部分,就是BST的Left
: Child;后半部分,就是BST的
: Right Child。用递归。
: public BTree convert(LinkedList list) {
: if (list.size() > 0) {
: // partition it into three parts: left, middle, right
: Partition parts = partition(list);
: LinkedList leftList = parts.getLeftSubList();
: LinkedList rightList = parts.getRightSubList();
c*m
12 楼
这个才是她能被MIT MBA录取的真正原因
一个PhD没有任何管理经验,连UCLA MBA都进不去
President, Co-founder
Advanced Degree Consulting Club at UCLA
April 2010 – February 2012 (1 year 11 months)
• Created a community of future consultants and business leaders
with advanced degrees and provide a platform for information exchange and
experience sharing.
• Led the team and generated substantial revenue by undertaking
consulting projects with local consulting firms.
• Bridge the gap between academia and consulting industry by hosting L
.E.K consulting career fair.
Member
Management Consulting Association at Anderson School of Management
January 2009 – February 2012 (3 years 2 months)
Healthcare Equity Analyst Internship
LifeSci Advisors
January 2010 – March 2011 (1 year 3 months)
• Performed market research to assess the commercial viability of
an emergent product in treatment of chronic renal disease.
• Evaluated the medical technology and its competition, using
publications, review articles, and discussions with doctors and scientists.
• Analyzed products chances for clinical and regulatory success,
identifying potential pitfalls.
【在 a*******k 的大作中提到】
: 武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
: MIT读全球排名第一的Operation/Engineering MBA。
: http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
一个PhD没有任何管理经验,连UCLA MBA都进不去
President, Co-founder
Advanced Degree Consulting Club at UCLA
April 2010 – February 2012 (1 year 11 months)
• Created a community of future consultants and business leaders
with advanced degrees and provide a platform for information exchange and
experience sharing.
• Led the team and generated substantial revenue by undertaking
consulting projects with local consulting firms.
• Bridge the gap between academia and consulting industry by hosting L
.E.K consulting career fair.
Member
Management Consulting Association at Anderson School of Management
January 2009 – February 2012 (3 years 2 months)
Healthcare Equity Analyst Internship
LifeSci Advisors
January 2010 – March 2011 (1 year 3 months)
• Performed market research to assess the commercial viability of
an emergent product in treatment of chronic renal disease.
• Evaluated the medical technology and its competition, using
publications, review articles, and discussions with doctors and scientists.
• Analyzed products chances for clinical and regulatory success,
identifying potential pitfalls.
【在 a*******k 的大作中提到】
: 武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
: MIT读全球排名第一的Operation/Engineering MBA。
: http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
f*e
13 楼
我们学校某专业把offer给了一位在德国工作的中国同胞。
a*o
15 楼
guys, think big
Let me give you a real example:
Xudong Yin
北大生物本科
斯坦福的Oncology Ph.D.
转行
MBA HBS
现在
诺华 novartis 大中国地区主席
【在 a*******k 的大作中提到】
: 武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
: MIT读全球排名第一的Operation/Engineering MBA。
: http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
Let me give you a real example:
Xudong Yin
北大生物本科
斯坦福的Oncology Ph.D.
转行
MBA HBS
现在
诺华 novartis 大中国地区主席
【在 a*******k 的大作中提到】
: 武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
: MIT读全球排名第一的Operation/Engineering MBA。
: http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
a*o
17 楼
who told you that
every year Wharton accepts several Ph.D. without real experiences
guys, 有点自信,好不好
【在 c**m 的大作中提到】
: 这个才是她能被MIT MBA录取的真正原因
: 一个PhD没有任何管理经验,连UCLA MBA都进不去
: President, Co-founder
: Advanced Degree Consulting Club at UCLA
: April 2010 – February 2012 (1 year 11 months)
: • Created a community of future consultants and business leaders
: with advanced degrees and provide a platform for information exchange and
: experience sharing.
: • Led the team and generated substantial revenue by undertaking
: consulting projects with local consulting firms.
every year Wharton accepts several Ph.D. without real experiences
guys, 有点自信,好不好
【在 c**m 的大作中提到】
: 这个才是她能被MIT MBA录取的真正原因
: 一个PhD没有任何管理经验,连UCLA MBA都进不去
: President, Co-founder
: Advanced Degree Consulting Club at UCLA
: April 2010 – February 2012 (1 year 11 months)
: • Created a community of future consultants and business leaders
: with advanced degrees and provide a platform for information exchange and
: experience sharing.
: • Led the team and generated substantial revenue by undertaking
: consulting projects with local consulting firms.
M*l
18 楼
最后找工作时的那一份工作,最好在美国吧。当然差别或许不大。同等条件拿到onsite
的机会(可能)稍微大一些。
的机会(可能)稍微大一些。
x*o
22 楼
NIH的Wu ling-gang 好像去马普所做过博后,然后回美国当教授的
n*7
23 楼
她算一直很努力的人了,也会把握机会,这种人不管做什么都不会差了
【在 a*******k 的大作中提到】
: 武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
: MIT读全球排名第一的Operation/Engineering MBA。
: http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
【在 a*******k 的大作中提到】
: 武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
: MIT读全球排名第一的Operation/Engineering MBA。
: http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
d*h
25 楼
知道的有两个生物相关fresh phd,一个去harvard MBA,一个harvard law JD
【在 a*******k 的大作中提到】
: 武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
: MIT读全球排名第一的Operation/Engineering MBA。
: http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
【在 a*******k 的大作中提到】
: 武大本科,UCLA生物博士读了五年半,在一家不到50人的小公司工作两年后今年夏天在
: MIT读全球排名第一的Operation/Engineering MBA。
: http://www.linkedin.com/pub/cong-cathy-fang/13/7b2/b52
a*l
27 楼
她要是知道在波士顿瞎混的很cheap的女生最后都能去斯隆的话,
肯定会很郁闷的
而且估计还是跟他一个班的
那里现在越来越鱼龙混杂了。。。
肯定会很郁闷的
而且估计还是跟他一个班的
那里现在越来越鱼龙混杂了。。。
c*g
29 楼
谢谢楼上几位前辈!
m*g
30 楼
方向也比较重要,我朋友的一个学校把位置给了在新西兰工作的人,因为他的方向系里
很喜欢。当然人家做的也不错。
很喜欢。当然人家做的也不错。
c*g
34 楼
谢谢前辈们的答复!
相关阅读
研究型论文作者数少算一种优势吗?paper helphow to insert svg into powerpoint 2013?Central NJ Biotech company seeking a R&D ManagerIndustry postdoc 的利与弊请教gfp或者yfp响应时间最新图像识别算法突破转 食物短缺的时候求推荐微生物实验室朋友说有没有真心为博后的前途考虑的中国老板?JEG3 cell怎么养?要申千青的或许可以参考Chinese author in top journal (原创)感叹生物科技最近进步更快包子请问关于做stroke的大牛关于过期的试剂AACR这样的会无聊不千老在大城市买房能做到吗?很多中国老板忽悠说你们发了CNS就好了,什么都有了最新《科学》论文有关癌症起源