a linked list, find the node that the last node point to.
_______
| |
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 ++;
}
}