Node * resverselinkWeibo(Node *head)
{
Node *newhead=NULL;
Node *next;
while(NULL!=head)
{
next=head->next;
head->next=newhead;
newhead=head;
head=next ;
}
return newhead;
}
Node * resverselinkWeibo(Node *head)
{
Node *newhead=NULL;
Node *next;
while(NULL!=head)
{
next=head->next;
head->next=newhead;
newhead=head;
head=next ;
}
return newhead;
}