










_______
| |
1-->2-->3-->4
2 is the node that we want.
struct node * FindNode(struct node **La)
{
struct node *current=*La;
struct node *last=*La;
//point to last node;
while(last->next>last)
{
last++;
}
//
while(current<last)
{
if(current==last->next)
return current;
current ++;
}
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。