x*0
2 楼
?
n*e
3 楼
同感啊,觉得面试官从intro to algorithms 里面找一个例题或者一个algorithm出来
让写code, implement一下。 40分钟不一定能搞定啊
让写code, implement一下。 40分钟不一定能搞定啊
c*l
4 楼
都见外婆了还讨论什么
x*8
5 楼
我也写了一会儿,主要注意一些细节
h*8
6 楼
all doom
J*3
7 楼
是啊 一看挺简单 具体写起来不容易bug free哦
p*a
8 楼
all the AIG guys will be wiped out
f*4
9 楼
忘记在一开始的时候让head->next=NULL的飘过..
h*n
10 楼
no need to 讨论
b*6
11 楼
patpat
K*n
12 楼
我都割肉了,下面没人了
m*g
13 楼
多刷刷就有感觉了, 模式熟悉之后,直接套上去。 笨人的想法 :)
羡慕大牛们干什么都是一气哈成。
羡慕大牛们干什么都是一气哈成。
g*l
16 楼
我没割,AIG没有问题,有钱再补点,昂首迎接下一次冲锋
b*t
18 楼
近期不敢碰
k*4
19 楼
貌似加个dummyHead还是挺好写的
ListNode *insertionSortList(ListNode *head) {
// IMPORTANT: Please reset any member data you declared, as
// the same Solution instance will be reused for each test case.
ListNode dummyHead(INT_MIN);
ListNode *p = head;
while(p != NULL)
{
ListNode *pre = &dummyHead;
while(pre->next != NULL && pre->next->val < p->val)
pre = pre->next;
ListNode *temp = p->next;
p->next = pre->next;
pre->next = p;
p = temp;
}
return dummyHead.next;
}
ListNode *insertionSortList(ListNode *head) {
// IMPORTANT: Please reset any member data you declared, as
// the same Solution instance will be reused for each test case.
ListNode dummyHead(INT_MIN);
ListNode *p = head;
while(p != NULL)
{
ListNode *pre = &dummyHead;
while(pre->next != NULL && pre->next->val < p->val)
pre = pre->next;
ListNode *temp = p->next;
p->next = pre->next;
pre->next = p;
p = temp;
}
return dummyHead.next;
}
l*6
20 楼
will hold it after next ER.
What is AIG next ER Date?
What is AIG next ER Date?
b*6
21 楼
那我也贴个java的好了
public ListNode insertionSortList(ListNode head) {
// IMPORTANT: Please reset any member data you declared, as
// the same Solution instance will be reused for each test case.
if (head == null) return null;
ListNode dummy = new ListNode(-1);
dummy.next = head;
ListNode i = head;
while (i.next != null) {
int n = i.next.val;
ListNode j = dummy;
while (j!=i&&j.next.val < n){
j = j.next;
}
if (j == i) {
i = i.next;
continue;
}
ListNode pivot = i.next;
i.next = i.next.next;
pivot.next = j.next;
j.next = pivot;
}
return dummy.next;
}
【在 k******4 的大作中提到】
: 貌似加个dummyHead还是挺好写的
: ListNode *insertionSortList(ListNode *head) {
: // IMPORTANT: Please reset any member data you declared, as
: // the same Solution instance will be reused for each test case.
: ListNode dummyHead(INT_MIN);
: ListNode *p = head;
: while(p != NULL)
: {
: ListNode *pre = &dummyHead;
: while(pre->next != NULL && pre->next->val < p->val)
public ListNode insertionSortList(ListNode head) {
// IMPORTANT: Please reset any member data you declared, as
// the same Solution instance will be reused for each test case.
if (head == null) return null;
ListNode dummy = new ListNode(-1);
dummy.next = head;
ListNode i = head;
while (i.next != null) {
int n = i.next.val;
ListNode j = dummy;
while (j!=i&&j.next.val < n){
j = j.next;
}
if (j == i) {
i = i.next;
continue;
}
ListNode pivot = i.next;
i.next = i.next.next;
pivot.next = j.next;
j.next = pivot;
}
return dummy.next;
}
【在 k******4 的大作中提到】
: 貌似加个dummyHead还是挺好写的
: ListNode *insertionSortList(ListNode *head) {
: // IMPORTANT: Please reset any member data you declared, as
: // the same Solution instance will be reused for each test case.
: ListNode dummyHead(INT_MIN);
: ListNode *p = head;
: while(p != NULL)
: {
: ListNode *pre = &dummyHead;
: while(pre->next != NULL && pre->next->val < p->val)
k*u
22 楼
兄弟你搞错了,是China2007.
我得纠正一下,免得误伤。
发信人: ctc (信通), 信区: Stock
标 题: Re: 没人再讨论AIG?
发信站: BBS 未名空间站 (Thu Jan 28 12:58:53 2010, 美东)
跌倒china007卖了为止。
我得纠正一下,免得误伤。
发信人: ctc (信通), 信区: Stock
标 题: Re: 没人再讨论AIG?
发信站: BBS 未名空间站 (Thu Jan 28 12:58:53 2010, 美东)
跌倒china007卖了为止。
相关阅读
经济很差啊free ETF trade on Scottrade?当版标刚才竖起大熊的时候,大盘应声而涨千把人在线,却基本上鸦雀无声沙画很厉害哦. 中国民间能人很多哦.今天你要不摆地铺,我看你以后还是不要炒股了。十天的预测就到了,医保又在暴跌,DT的好对象这里理工科的多,这个问题估计难不倒你们!今天盘后新浪怎么走?QCOM 还有戏么???愿网友们早日找到 inner peace!认为美国衰落也不会怎样的 进来看看 (转载)TAOM有没有玩的【据传日本政府将干预外汇市场,抛售日元】澳门赌场股连创新高,股市上窜下跳,还是买点高股息比较稳妥每次蜂神出场 MM都很给面子呀expecting 新《水浒》今天是指南针